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 listMay 16, 2024 20:18Ivan BessonovIvan BessonovScore: 26,247Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 16, 2024 20:1826,12648,274,66120,992,0001,999,0002,269,184
2May 16, 2024 20:1826,13147,440,50720,996,0001,999,0002,285,568
3May 16, 2024 20:1826,21345,354,28421,062,0002,005,0002,289,664
4May 16, 2024 20:1826,21947,114,55721,067,0002,006,0002,281,472
5May 16, 2024 20:1826,24444,888,10622,091,0001,004,0002,289,664
6May 16, 2024 20:1826,24544,750,60922,092,0001,004,0002,273,280
7May 16, 2024 20:1826,24748,010,92922,093,0001,004,0002,289,664
8May 16, 2024 20:1826,25246,599,70521,094,0002,008,0002,289,664
9May 16, 2024 20:1826,44256,717,58522,300,000969,0002,289,664
10May 16, 2024 20:1827,797101,010,28024,461,69002,256,896
11May 16, 2024 20:1827,90693,952,61024,557,00902,265,088
12May 16, 2024 20:1828,01588,400,81724,652,84302,256,896