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 listMay 5, 2026 19:55olliecrowolliecrowScore: 11,731Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 5, 2026 19:5811,59326,211,90310,202,00002,543,616stderr
2May 5, 2026 19:5811,60924,329,52610,216,00002,547,712stderr
3May 5, 2026 19:5811,71525,716,61110,310,00002,555,904stderr
4May 5, 2026 19:5811,71827,298,62710,312,00002,555,904stderr
5May 5, 2026 19:5811,73124,085,10410,324,00002,535,424stderr
6May 5, 2026 19:5811,73527,426,4429,274,0001,053,0002,547,712stderr
7May 5, 2026 19:5811,74223,023,6399,281,0001,052,0002,547,712stderr
8May 5, 2026 19:5811,74525,466,7409,281,0001,055,0002,547,712stderr
9May 5, 2026 19:5811,78127,588,3799,304,0001,064,0002,547,712stderr