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 6, 2026 04:18Victor MerckléVictor MerckléScore: 3,996Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 6, 2026 04:213,92111,272,6493,451,00002,117,632stderr
2Jul 6, 2026 04:213,92311,261,3193,453,00002,117,632stderr
3Jul 6, 2026 04:213,92711,272,4953,456,00002,117,632stderr
4Jul 6, 2026 04:213,95611,333,3173,482,00002,117,632stderr
5Jul 6, 2026 04:213,99611,349,1893,517,00002,117,632stderr
6Jul 6, 2026 04:214,04811,606,7863,563,00002,117,632stderr
7Jul 6, 2026 04:214,08211,329,9573,593,00002,117,632stderr
8Jul 6, 2026 04:214,11411,661,4063,621,00002,117,632stderr
9Jul 6, 2026 04:214,20211,375,1963,698,00002,117,632stderr