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 20:09Victor MerckléVictor MerckléScore: 4,684Success
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 20:114,56411,730,9734,017,00002,117,632stderr
2Jul 2, 2026 20:114,57511,817,6394,026,00002,117,632stderr
3Jul 2, 2026 20:114,57611,784,0424,027,00002,117,632stderr
4Jul 2, 2026 20:114,68411,797,3874,122,00002,117,632stderr
5Jul 2, 2026 20:114,68411,791,4424,122,00002,117,632stderr
6Jul 2, 2026 20:114,68812,132,8414,126,00002,117,632stderr
7Jul 2, 2026 20:114,69612,256,6924,133,00002,117,632stderr
8Jul 2, 2026 20:114,70312,179,0674,139,00002,117,632stderr
9Jul 2, 2026 20:114,78712,275,9374,213,00002,117,632stderr