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 listMar 21, 2026 10:18Dominique GarmierDominique GarmierScore: 2,182,808Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 21, 2026 10:182,178,8381,943,012,3401,914,378,0002,999,0002,547,712
2Mar 21, 2026 10:182,182,8081,952,472,8941,913,876,0006,995,0002,445,312
3Mar 21, 2026 10:182,189,6861,955,761,5091,920,928,0005,996,0002,293,760