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 15:31olliecrowolliecrowScore: 13,534Success
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 15:3213,28932,924,06110,632,0001,063,0002,334,720stderr
2Apr 25, 2026 15:3213,33430,118,84510,668,0001,066,0002,347,008stderr
3Apr 25, 2026 15:3213,39230,972,55611,785,00002,338,816stderr
4Apr 25, 2026 15:3213,51431,268,4309,911,0001,982,0002,330,624stderr
5Apr 25, 2026 15:3213,53428,243,7779,925,0001,985,0002,326,528stderr
6Apr 25, 2026 15:3214,31334,472,91711,547,0001,049,0002,318,336stderr
7Apr 25, 2026 15:3214,73131,943,15110,970,0001,994,0002,342,912stderr
8Apr 25, 2026 15:3214,91230,553,29512,114,0001,009,0002,347,008stderr
9Apr 25, 2026 15:3215,36731,534,77212,483,0001,040,0002,330,624stderr