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 06:27Victor MerckléVictor MerckléScore: 4,727Success
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 06:314,61411,868,1804,061,00002,117,632stderr
2Jul 2, 2026 06:314,63211,806,4334,077,00002,117,632stderr
3Jul 2, 2026 06:314,65911,898,8234,100,00002,117,632stderr
4Jul 2, 2026 06:314,71811,897,0094,152,00002,117,632stderr
5Jul 2, 2026 06:314,72711,906,8984,160,00002,117,632stderr
6Jul 2, 2026 06:314,73111,867,4434,164,00002,117,632stderr
7Jul 2, 2026 06:314,74712,127,1824,178,00002,117,632stderr
8Jul 2, 2026 06:314,75113,408,9154,181,00002,117,632stderr
9Jul 2, 2026 06:314,82012,018,8254,242,00002,117,632stderr