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 11, 2026 07:33Victor MerckléVictor MerckléScore: 7,087Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 11, 2026 07:356,96213,484,9546,127,00002,113,536
2Jun 11, 2026 07:357,01013,445,3626,169,00002,113,536
3Jun 11, 2026 07:357,03513,461,1806,191,00002,113,536
4Jun 11, 2026 07:357,07015,354,4156,222,00002,113,536
5Jun 11, 2026 07:357,08713,775,9636,237,00002,113,536
6Jun 11, 2026 07:357,18413,806,9336,322,00002,113,536
7Jun 11, 2026 07:357,20413,821,0086,340,00002,113,536
8Jun 11, 2026 07:357,22313,747,8116,357,00002,113,536
9Jun 11, 2026 07:357,36514,237,1856,482,00002,113,536