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 listMay 14, 2026 17:05Josu San MartinJosu San MartinScore: 114,582Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 14, 2026 17:21114,067107,459,381100,379,00002,113,536
2May 14, 2026 17:21114,101109,184,374100,409,00002,113,536
3May 14, 2026 17:21114,332110,010,038100,613,00002,113,536
4May 14, 2026 17:21114,344109,500,040100,623,00002,113,536
5May 14, 2026 17:21114,582108,153,550100,833,00002,113,536
6May 14, 2026 17:21114,652109,322,930100,894,00002,113,536
7May 14, 2026 17:21114,675108,766,836100,914,00002,113,536
8May 14, 2026 17:21114,839108,061,247101,059,00002,113,536
9May 14, 2026 17:21114,982108,758,849101,185,00002,113,536