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 listJun 27, 2026 14:12Victor MerckléVictor MerckléScore: 5,264Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 27, 2026 14:145,09611,896,8094,485,00002,113,536
2Jun 27, 2026 14:145,21511,957,2274,590,00002,113,536
3Jun 27, 2026 14:145,23211,907,5104,605,00002,113,536
4Jun 27, 2026 14:145,24212,157,1074,613,00002,113,536
5Jun 27, 2026 14:145,26412,025,3184,633,00002,113,536
6Jun 27, 2026 14:145,28511,972,0214,651,00002,113,536
7Jun 27, 2026 14:145,33812,024,9544,698,00002,113,536
8Jun 27, 2026 14:145,37012,215,7314,726,00002,113,536
9Jun 27, 2026 14:145,37912,068,2074,734,00002,113,536