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 12:18Victor MerckléVictor MerckléScore: 4,581Success
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 12:214,56811,880,2304,020,00002,117,632stderr
2Jul 4, 2026 12:214,57012,148,0084,022,00002,117,632stderr
3Jul 4, 2026 12:214,57611,769,4174,027,00002,117,632stderr
4Jul 4, 2026 12:214,57711,714,4334,028,00002,117,632stderr
5Jul 4, 2026 12:214,58112,125,2754,032,00002,117,632stderr
6Jul 4, 2026 12:214,59311,799,3224,042,00002,117,632stderr
7Jul 4, 2026 12:214,77111,914,1814,199,00002,117,632stderr
8Jul 4, 2026 12:214,77612,000,7774,203,00002,117,632stderr
9Jul 4, 2026 12:215,22612,459,1344,599,00002,117,632stderr