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 listApr 18, 2026 21:25Victor MerckléVictor MerckléScore: 31,069Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 18, 2026 21:2531,04251,346,90026,306,0001,011,0002,273,280
2Apr 18, 2026 21:2531,06955,462,22926,329,0001,012,0002,400,256
3Apr 18, 2026 21:2531,08448,384,62727,354,00002,273,280