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 18:55Victor MerckléVictor MerckléScore: 3,673Success
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 18:573,58911,071,8583,159,00002,117,632stderr
2Jul 9, 2026 18:573,59411,030,0673,163,00002,117,632stderr
3Jul 9, 2026 18:573,59611,017,5553,165,00002,117,632stderr
4Jul 9, 2026 18:573,61311,095,3803,180,00002,117,632stderr
5Jul 9, 2026 18:573,67311,050,6773,233,00002,117,632stderr
6Jul 9, 2026 18:573,68011,056,1043,239,00002,117,632stderr
7Jul 9, 2026 18:573,68811,148,0313,246,00002,117,632stderr
8Jul 9, 2026 18:573,70611,536,5013,262,00002,117,632stderr
9Jul 9, 2026 18:573,71811,459,4793,272,00002,117,632stderr