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 30, 2026 23:38Charles CabergsCharles CabergsScore: 21,621Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 30, 2026 23:4121,47734,481,46716,911,0001,989,0002,547,712stderr
2Apr 30, 2026 23:4121,48836,365,32616,920,0001,990,0002,535,424stderr
3Apr 30, 2026 23:4121,53937,709,77716,960,0001,995,0002,535,424stderr
4Apr 30, 2026 23:4121,57542,393,55713,990,0004,996,0002,531,328stderr
5Apr 30, 2026 23:4121,62137,407,18415,022,0004,005,0002,531,328stderr
6Apr 30, 2026 23:4121,62733,023,39116,027,0003,005,0002,306,048stderr
7Apr 30, 2026 23:4121,63138,306,17217,033,0002,003,0002,527,232stderr
8Apr 30, 2026 23:4121,69341,456,03614,067,0005,023,0002,531,328stderr
9Apr 30, 2026 23:4121,72234,993,96619,116,00002,527,232stderr