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 8, 2026 21:29Victor MerckléVictor MerckléScore: 7,545Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 8, 2026 21:317,41113,956,5396,522,00002,113,536
2Jun 8, 2026 21:317,50314,054,8476,603,00002,113,536
3Jun 8, 2026 21:317,51114,139,6666,610,00002,113,536
4Jun 8, 2026 21:317,53413,980,0166,630,00002,113,536
5Jun 8, 2026 21:317,54519,697,9816,640,00002,113,536
6Jun 8, 2026 21:317,55321,649,0186,647,00002,113,536
7Jun 8, 2026 21:317,55414,019,2996,648,00002,113,536
8Jun 8, 2026 21:317,60014,125,8486,688,00002,113,536
9Jun 8, 2026 21:317,88421,163,1406,938,00002,113,536