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 listAug 29, 2026 12:53Victor MerckléVictor MerckléScore: 3,211Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 29, 2026 12:573,09410,921,1952,723,00002,117,632stderr
2Aug 29, 2026 12:573,09810,896,5102,727,00002,117,632stderr
3Aug 29, 2026 12:573,10610,972,5152,734,00002,117,632stderr
4Aug 29, 2026 12:573,11810,933,2142,744,00002,117,632stderr
5Aug 29, 2026 12:573,21110,964,7802,826,00002,117,632stderr
6Aug 29, 2026 12:573,21411,660,0702,829,00002,117,632stderr
7Aug 29, 2026 12:573,21911,626,3832,833,00002,117,632stderr
8Aug 29, 2026 12:573,22011,659,7522,834,00002,117,632stderr
9Aug 29, 2026 12:573,22110,943,9512,835,00002,117,632stderr