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 09:12Victor MerckléVictor MerckléScore: 4,546Success
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 09:154,41911,787,4533,889,00002,117,632stderr
2Jul 4, 2026 09:154,47211,868,8443,936,00002,117,632stderr
3Jul 4, 2026 09:154,50111,801,7303,961,00002,117,632stderr
4Jul 4, 2026 09:154,54512,165,8904,000,00002,117,632stderr
5Jul 4, 2026 09:154,54611,713,4014,001,00002,117,632stderr
6Jul 4, 2026 09:154,57211,807,7604,024,00002,117,632stderr
7Jul 4, 2026 09:154,59411,809,7894,043,00002,117,632stderr
8Jul 4, 2026 09:154,75213,560,8044,182,00002,117,632stderr
9Jul 4, 2026 09:154,76912,170,2762,929,0001,268,0002,117,632stderr