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 23, 2026 10:50Victor MerckléVictor MerckléScore: 5,490Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 23, 2026 10:535,36212,315,5304,719,00002,113,536
2Jun 23, 2026 10:535,36412,257,1074,721,00002,113,536
3Jun 23, 2026 10:535,46012,304,5044,805,00002,113,536
4Jun 23, 2026 10:535,47612,297,6974,819,00002,113,536
5Jun 23, 2026 10:535,49012,335,1824,832,00002,113,536
6Jun 23, 2026 10:535,49012,653,6604,832,00002,113,536
7Jun 23, 2026 10:535,49812,320,2804,839,00002,113,536
8Jun 23, 2026 10:535,52012,347,0454,858,00002,113,536
9Jun 23, 2026 10:535,81213,146,0405,115,00002,113,536