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 22, 2026 23:31Josu San MartinJosu San MartinScore: 5,306Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 22, 2026 23:335,20912,062,6444,584,00002,113,536
2Jun 22, 2026 23:335,22512,102,1544,598,00002,113,536
3Jun 22, 2026 23:335,24212,146,8634,613,00002,113,536
4Jun 22, 2026 23:335,25712,173,7684,627,00002,113,536
5Jun 22, 2026 23:335,30612,115,5234,670,00002,113,536
6Jun 22, 2026 23:335,31812,126,5704,680,00002,113,536
7Jun 22, 2026 23:335,32812,118,9064,689,00002,113,536
8Jun 22, 2026 23:335,33212,474,1204,693,00002,113,536
9Jun 22, 2026 23:335,33812,208,3994,698,00002,113,536