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 02:53Yuriy LyfenkoYuriy LyfenkoScore: 28,335Success
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 02:5328,14560,462,51923,736,0001,032,0002,527,232
2Dec 29, 2022 02:5328,24151,003,72322,864,0001,988,0002,527,232
3Dec 29, 2022 02:5328,26549,967,96624,873,00002,400,256
4Dec 29, 2022 02:5328,29250,742,73323,902,000995,0002,527,232
5Dec 29, 2022 02:5328,30954,660,67823,916,000996,0002,527,232
6Dec 29, 2022 02:5328,31954,640,99322,928,0001,993,0002,265,088
7Dec 29, 2022 02:5328,33551,094,24022,941,0001,994,0002,387,968
8Dec 29, 2022 02:5328,38954,206,67622,984,0001,998,0002,387,968
9Dec 29, 2022 02:5328,43453,971,59523,021,0002,001,0002,265,088
10Dec 29, 2022 02:5328,85079,921,45125,388,11202,224,128
11Dec 29, 2022 02:5328,943108,996,71325,469,64002,224,128
12Dec 29, 2022 02:5329,01198,040,93125,529,49102,232,320