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:09Kevin HeaveyKevin HeaveyScore: 2,695Success
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 18:122,67312,377,8592,353,000020,480
2Sep 25, 2026 18:122,67510,887,8222,354,000020,480
3Sep 25, 2026 18:122,68510,839,6252,363,000020,480
4Sep 25, 2026 18:122,68711,474,5202,365,000020,480
5Sep 25, 2026 18:122,69511,545,3712,372,000020,480
6Sep 25, 2026 18:122,70110,840,8462,377,000020,480
7Sep 25, 2026 18:122,70210,834,5982,378,000020,480
8Sep 25, 2026 18:122,70410,819,8322,380,000020,480
9Sep 25, 2026 18:122,70511,576,1712,381,000020,480