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 3, 2026 03:14Victor MerckléVictor MerckléScore: 4,542Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 3, 2026 03:174,43011,706,5603,899,00002,117,632stderr
2Jul 3, 2026 03:174,43811,642,8253,906,00002,117,632stderr
3Jul 3, 2026 03:174,53911,703,2643,995,00002,117,632stderr
4Jul 3, 2026 03:174,54011,729,5413,996,00002,117,632stderr
5Jul 3, 2026 03:174,54211,726,6493,997,00002,117,632stderr
6Jul 3, 2026 03:174,54811,718,8344,003,00002,117,632stderr
7Jul 3, 2026 03:174,55011,860,6854,004,00002,117,632stderr
8Jul 3, 2026 03:174,57011,699,0034,022,00002,117,632stderr
9Jul 3, 2026 03:174,66811,827,0934,108,00002,117,632stderr