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:52Kevin HeaveyKevin HeaveyScore: 2,739Success
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:562,72010,886,1322,394,000020,480
2Sep 25, 2026 17:562,72610,810,4042,399,000020,480
3Sep 25, 2026 17:562,73810,918,7502,410,000020,480
4Sep 25, 2026 17:562,73811,435,4272,410,000020,480
5Sep 25, 2026 17:562,73911,454,9502,411,000020,480
6Sep 25, 2026 17:562,74410,818,0212,415,000020,480
7Sep 25, 2026 17:562,74510,913,2872,416,000020,480
8Sep 25, 2026 17:562,74711,013,6592,418,000020,480
9Sep 25, 2026 17:562,75111,578,8892,421,000020,480