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 listApr 25, 2026 10:46olliecrowolliecrowScore: 13,547Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 25, 2026 10:4713,26826,523,99510,615,0001,061,0002,326,528stderr
2Apr 25, 2026 10:4713,36325,621,40110,691,0001,069,0002,342,912stderr
3Apr 25, 2026 10:4713,36726,157,32110,783,000980,0002,342,912stderr
4Apr 25, 2026 10:4713,47728,550,7859,884,0001,976,0002,342,912stderr
5Apr 25, 2026 10:4713,54731,174,1269,935,0001,987,0002,342,912stderr
6Apr 25, 2026 10:4713,65431,204,45510,014,0002,002,0002,318,336stderr
7Apr 25, 2026 10:4713,99528,924,84211,290,0001,026,0002,334,720stderr
8Apr 25, 2026 10:4714,06330,752,82411,345,0001,031,0002,342,912stderr
9Apr 25, 2026 10:4715,06932,607,28912,241,0001,020,0002,326,528stderr