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 listApr 24, 2026 21:14Pavel SkripkinPavel SkripkinScore: 104,046Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 24, 2026 21:15103,675107,436,07690,232,0001,002,0002,424,832
2Apr 24, 2026 21:15103,760110,553,83090,306,0001,003,0002,433,024
3Apr 24, 2026 21:15103,812107,465,17790,352,0001,003,0002,424,832
4Apr 24, 2026 21:15103,938104,605,10090,461,0001,005,0002,433,024
5Apr 24, 2026 21:15104,046110,304,03691,561,00002,445,312
6Apr 24, 2026 21:15104,152106,193,55391,654,00002,433,024
7Apr 24, 2026 21:15104,170106,725,60290,663,0001,007,0002,437,120
8Apr 24, 2026 21:15104,186107,082,91590,677,0001,007,0002,437,120
9Apr 24, 2026 21:15104,296108,964,88889,786,0001,995,0002,330,624