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 listSep 25, 2026 17:24Kevin HeaveyKevin HeaveyScore: 2,840Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 25, 2026 17:272,82011,559,4252,482,000020,480
2Sep 25, 2026 17:272,82311,020,5902,485,000020,480
3Sep 25, 2026 17:272,82510,957,1192,486,000020,480
4Sep 25, 2026 17:272,84012,327,3922,500,000020,480
5Sep 25, 2026 17:272,84011,125,9792,500,000020,480
6Sep 25, 2026 17:272,84211,024,7012,501,000020,480
7Sep 25, 2026 17:272,84810,997,9462,507,000020,480
8Sep 25, 2026 17:272,90111,078,9212,553,000020,480
9Sep 25, 2026 17:272,91111,096,5972,562,000020,480