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 22:50Victor MerckléVictor MerckléScore: 130,080Success
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 22:52128,701120,937,077113,257,00002,117,632stderr
2Jul 3, 2026 22:52129,323121,591,896112,800,0001,005,0002,117,632stderr
3Jul 3, 2026 22:52129,480121,526,712113,943,00002,117,632stderr
4Jul 3, 2026 22:52130,003122,048,992114,403,00002,117,632stderr
5Jul 3, 2026 22:52130,080122,362,593114,471,00002,117,632stderr
6Jul 3, 2026 22:52130,127122,151,630114,512,00002,117,632stderr
7Jul 3, 2026 22:52130,490122,486,150114,832,00002,117,632stderr
8Jul 3, 2026 22:52130,580122,570,422114,911,00002,117,632stderr
9Jul 3, 2026 22:52130,877123,102,459115,172,00002,117,632stderr