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 listDec 29, 2022 03:16Yuriy LyfenkoYuriy LyfenkoScore: 28,313Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 29, 2022 03:1628,10249,762,58723,700,0001,030,0002,392,064
2Dec 29, 2022 03:1628,17350,440,15024,792,00002,527,232
3Dec 29, 2022 03:1628,26150,918,81323,876,000994,0002,523,136
4Dec 29, 2022 03:1628,29253,057,14223,902,000995,0002,490,368
5Dec 29, 2022 03:1628,29854,795,03322,910,0001,992,0002,265,088
6Dec 29, 2022 03:1628,31152,715,67623,918,000996,0002,265,088
7Dec 29, 2022 03:1628,31354,404,06522,922,0001,993,0002,527,232
8Dec 29, 2022 03:1628,36553,762,37022,965,0001,996,0002,527,232
9Dec 29, 2022 03:1628,44152,648,11123,026,0002,002,0002,256,896
10Dec 29, 2022 03:1628,817100,902,88425,358,89802,232,320
11Dec 29, 2022 03:1629,07594,102,90325,586,40302,240,512
12Dec 29, 2022 03:1629,36979,593,28125,845,12802,228,224