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 18:58Kevin HeaveyKevin HeaveyScore: 2,643Success
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 19:002,62611,462,0962,311,000020,480
2Sep 25, 2026 19:002,63214,282,3972,317,000020,480
3Sep 25, 2026 19:002,63810,917,1332,322,000020,480
4Sep 25, 2026 19:002,64211,530,4762,325,000020,480
5Sep 25, 2026 19:002,64310,907,3772,326,000020,480
6Sep 25, 2026 19:002,64310,821,2142,326,000020,480
7Sep 25, 2026 19:002,66710,960,2012,347,000020,480
8Sep 25, 2026 19:002,66911,559,6672,349,000020,480
9Sep 25, 2026 19:002,86211,712,2472,519,000020,480