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 9, 2026 11:40Victor MerckléVictor MerckléScore: 3,588Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 9, 2026 11:433,56911,045,9113,141,00002,117,632stderr
2Jul 9, 2026 11:433,57611,062,4593,147,00002,117,632stderr
3Jul 9, 2026 11:433,58411,074,4013,154,00002,117,632stderr
4Jul 9, 2026 11:433,58511,039,1523,155,00002,117,632stderr
5Jul 9, 2026 11:433,58811,067,1523,158,00002,117,632stderr
6Jul 9, 2026 11:433,60111,067,6953,169,00002,117,632stderr
7Jul 9, 2026 11:433,67111,128,2533,231,00002,117,632stderr
8Jul 9, 2026 11:433,68211,519,7373,241,00002,117,632stderr
9Jul 9, 2026 11:433,69011,283,8453,248,00002,117,632stderr