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 5, 2024 09:12Ivan BessonovIvan BessonovScore: 45,894Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 5, 2024 09:1245,69164,704,00838,198,0002,010,0002,289,664
2May 5, 2024 09:1245,71064,600,32738,214,0002,011,0002,523,136
3May 5, 2024 09:1245,77361,578,79038,266,0002,014,0002,265,088
4May 5, 2024 09:1245,83962,725,67339,330,0001,008,0002,269,184
5May 5, 2024 09:1245,85565,165,06440,352,00002,289,664
6May 5, 2024 09:1245,85961,164,66038,339,0002,017,0002,289,664
7May 5, 2024 09:1245,89466,348,60039,378,0001,009,0002,289,664
8May 5, 2024 09:1245,99470,918,63339,464,0001,011,0002,289,664
9May 5, 2024 09:1246,00168,572,81839,469,0001,012,0002,289,664
10May 5, 2024 09:1246,194101,409,05740,650,42402,256,896
11May 5, 2024 09:1246,204100,514,66040,659,18802,248,704
12May 5, 2024 09:1246,435113,615,78040,863,17402,260,992