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:08Josu San MartinJosu San MartinScore: 5,365Success
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:115,25212,262,1254,622,00002,113,536
2Jun 22, 2026 23:115,26312,161,2674,632,00002,113,536
3Jun 22, 2026 23:115,27312,175,8064,641,00002,113,536
4Jun 22, 2026 23:115,30512,215,2114,669,00002,113,536
5Jun 22, 2026 23:115,36512,374,3124,722,00002,113,536
6Jun 22, 2026 23:115,37212,178,2174,728,00002,113,536
7Jun 22, 2026 23:115,38513,334,3554,739,00002,113,536
8Jun 22, 2026 23:115,41012,539,6484,761,00002,113,536
9Jun 22, 2026 23:115,67914,034,7614,998,00002,113,536