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 19:47Josu San MartinJosu San MartinScore: 5,500Success
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 19:495,40412,300,1834,756,00002,113,536
2Jun 22, 2026 19:495,40612,308,0254,758,00002,113,536
3Jun 22, 2026 19:495,42612,349,4854,775,00002,113,536
4Jun 22, 2026 19:495,45712,332,0224,803,00002,113,536
5Jun 22, 2026 19:495,50012,281,7604,840,00002,113,536
6Jun 22, 2026 19:495,50312,613,1934,843,00002,113,536
7Jun 22, 2026 19:495,53713,787,0264,873,00002,113,536
8Jun 22, 2026 19:495,54012,333,6584,876,00002,113,536
9Jun 22, 2026 19:495,54312,333,9144,878,00002,113,536