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 4, 2026 19:59Victor MerckléVictor MerckléScore: 4,518Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 4, 2026 20:034,40411,685,7863,876,00002,117,632stderr
2Jul 4, 2026 20:034,41211,777,5843,883,00002,117,632stderr
3Jul 4, 2026 20:034,42111,733,6173,891,00002,117,632stderr
4Jul 4, 2026 20:034,47919,522,0963,942,00002,117,632stderr
5Jul 4, 2026 20:034,51821,508,8623,976,00002,117,632stderr
6Jul 4, 2026 20:034,51911,748,4573,977,00002,117,632stderr
7Jul 4, 2026 20:034,52911,740,0603,986,00002,117,632stderr
8Jul 4, 2026 20:034,53811,781,0113,994,00002,117,632stderr
9Jul 4, 2026 20:034,55511,781,6874,009,00002,117,632stderr