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 21, 2026 12:54Victor MerckléVictor MerckléScore: 6,837Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 21, 2026 12:566,73813,419,3925,930,00002,113,536
2Jun 21, 2026 12:566,78613,512,2405,972,00002,113,536
3Jun 21, 2026 12:566,82013,400,9566,002,00002,113,536
4Jun 21, 2026 12:566,83413,509,4336,014,00002,113,536
5Jun 21, 2026 12:566,83713,476,3516,017,00002,113,536
6Jun 21, 2026 12:566,84513,784,1706,024,00002,113,536
7Jun 21, 2026 12:566,86513,528,9106,042,00002,113,536
8Jun 21, 2026 12:566,89613,683,4336,069,00002,113,536
9Jun 21, 2026 12:566,89813,747,7386,071,00002,113,536