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 2, 2026 11:39Victor MerckléVictor MerckléScore: 6,492Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 2, 2026 11:416,44613,515,3195,673,00002,117,632stderr
2Jul 2, 2026 11:416,45013,420,9705,676,00002,117,632stderr
3Jul 2, 2026 11:416,45113,496,2845,677,00002,117,632stderr
4Jul 2, 2026 11:416,47313,439,6785,697,00002,117,632stderr
5Jul 2, 2026 11:416,49213,501,8955,713,00002,117,632stderr
6Jul 2, 2026 11:416,57213,488,1085,784,00002,117,632stderr
7Jul 2, 2026 11:416,60613,877,8825,814,00002,117,632stderr
8Jul 2, 2026 11:416,62013,680,2035,826,00002,117,632stderr
9Jul 2, 2026 11:416,98014,185,6976,143,00002,117,632stderr