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 listSep 2, 2026 21:26Victor MerckléVictor MerckléScore: 26,992Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 2, 2026 21:3326,91431,851,73423,685,000024,576stderr
2Sep 2, 2026 21:3326,92731,829,93223,696,000024,576stderr
3Sep 2, 2026 21:3326,93732,464,63423,705,000024,576stderr
4Sep 2, 2026 21:3326,94332,497,71623,710,000024,576stderr
5Sep 2, 2026 21:3326,99231,908,16923,753,000024,576stderr
6Sep 2, 2026 21:3327,00131,923,10723,761,000024,576stderr
7Sep 2, 2026 21:3327,08132,547,36923,832,000024,576stderr
8Sep 2, 2026 21:3327,38132,241,31424,096,000024,576stderr
9Sep 2, 2026 21:3327,40032,859,91924,112,000024,576stderr