Sum of prime numbers Andrey Tsvetkov

Compute the sum of all prime numbers in a stream of binary integers as fast as possible.

Input: 1 000 000 uint32 values in little-endian binary on STDIN (4 bytes each).

Output: The uint64 sum of all values that are prime, printed as a decimal string.

Back to listNov 30, 2022 11:55apuxbtapuxbtScore: 34,620Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 30, 2022 11:5534,49450,126,58128,332,0002,023,0002,265,088
2Nov 30, 2022 11:5534,53458,567,33730,390,00002,383,872
3Nov 30, 2022 11:5534,55858,031,30429,398,0001,013,0002,375,680
4Nov 30, 2022 11:5534,58557,321,36829,421,0001,014,0002,396,160
5Nov 30, 2022 11:5534,58860,250,67529,456,000981,0002,265,088
6Nov 30, 2022 11:5534,60757,151,21029,439,0001,015,0002,379,776
7Nov 30, 2022 11:5534,62061,452,22530,466,00002,265,088
8Nov 30, 2022 11:5534,64054,685,70629,467,0001,016,0002,265,088
9Nov 30, 2022 11:5534,64152,119,57929,468,0001,016,0002,265,088
10Nov 30, 2022 11:5534,94283,831,52330,748,84502,236,416
11Nov 30, 2022 11:5534,95490,711,96830,759,41802,232,320
12Nov 30, 2022 11:5534,95788,256,18630,762,46002,236,416