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 19, 2026 20:46Victor MerckléVictor MerckléScore: 7,238Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 19, 2026 20:497,11013,795,4086,257,00002,113,536
2Jun 19, 2026 20:497,13813,747,9836,282,00002,113,536
3Jun 19, 2026 20:497,15613,773,1696,298,00002,113,536
4Jun 19, 2026 20:497,18613,766,7356,324,00002,113,536
5Jun 19, 2026 20:497,23813,802,0936,370,00002,113,536
6Jun 19, 2026 20:497,26714,774,3456,395,00002,113,536
7Jun 19, 2026 20:497,28214,160,5496,409,00002,113,536
8Jun 19, 2026 20:497,33714,224,8776,457,00002,113,536
9Jun 19, 2026 20:497,37613,929,1516,491,00002,113,536