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 20:28Victor MerckléVictor MerckléScore: 4,538Success
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:324,40011,736,2473,872,00002,117,632stderr
2Jul 4, 2026 20:324,42711,747,9543,896,00002,117,632stderr
3Jul 4, 2026 20:324,53112,113,7063,988,00002,117,632stderr
4Jul 4, 2026 20:324,53611,748,2573,992,00002,117,632stderr
5Jul 4, 2026 20:324,53811,911,7093,994,00002,117,632stderr
6Jul 4, 2026 20:324,54711,811,5644,002,00002,117,632stderr
7Jul 4, 2026 20:324,70911,981,1534,144,00002,117,632stderr
8Jul 4, 2026 20:324,71111,987,9294,146,00002,117,632stderr
9Jul 4, 2026 20:324,85912,095,2684,276,00002,117,632stderr