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 listJul 4, 2026 11:54Victor MerckléVictor MerckléScore: 4,538Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 4, 2026 11:564,36911,862,5993,845,00002,117,632stderr
2Jul 4, 2026 11:564,51911,777,7443,977,00002,117,632stderr
3Jul 4, 2026 11:564,52511,770,6613,982,00002,117,632stderr
4Jul 4, 2026 11:564,53111,778,3883,988,00002,117,632stderr
5Jul 4, 2026 11:564,53811,803,6633,994,00002,117,632stderr
6Jul 4, 2026 11:564,55712,055,2884,011,00002,117,632stderr
7Jul 4, 2026 11:564,69611,941,8934,133,00002,117,632stderr
8Jul 4, 2026 11:564,72511,980,2984,158,00002,117,632stderr
9Jul 4, 2026 11:565,01712,196,7504,415,00002,117,632stderr