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 23:25Victor MerckléVictor MerckléScore: 4,420Success
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 23:284,40411,729,8983,876,00002,117,632stderr
2Jul 4, 2026 23:284,41011,756,4493,881,00002,117,632stderr
3Jul 4, 2026 23:284,41211,704,1713,883,00002,117,632stderr
4Jul 4, 2026 23:284,41811,781,0503,888,00002,117,632stderr
5Jul 4, 2026 23:284,42011,759,9013,890,00002,117,632stderr
6Jul 4, 2026 23:284,42311,749,6193,893,00002,117,632stderr
7Jul 4, 2026 23:284,50512,083,3313,965,00002,117,632stderr
8Jul 4, 2026 23:284,53611,804,5623,992,00002,117,632stderr
9Jul 4, 2026 23:284,54011,782,8493,996,00002,117,632stderr