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 10, 2026 18:36Victor MerckléVictor MerckléScore: 9,469Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 10, 2026 18:399,35517,490,3497,074,0001,159,0002,138,112
2Jun 10, 2026 18:399,35915,770,5947,109,0001,127,0002,138,112
3Jun 10, 2026 18:399,37517,280,2157,080,0001,170,0002,142,208
4Jun 10, 2026 18:399,41315,758,4437,172,0001,112,0002,138,112
5Jun 10, 2026 18:399,46917,237,3296,986,0001,347,0002,142,208
6Jun 10, 2026 18:399,47617,102,8537,086,0001,253,0002,138,112
7Jun 10, 2026 18:399,48817,601,4276,960,0001,390,0002,142,208
8Jun 10, 2026 18:399,51315,830,8947,130,0001,242,0002,138,112
9Jun 10, 2026 18:399,57017,640,3387,032,0001,390,0002,138,112