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 listOct 13, 2026 18:42Karthik ReddyKarthik ReddyScore: 2,565Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 13, 2026 18:482,5426,011,467,3362,237,000020,480
2Oct 13, 2026 18:482,5436,011,859,7062,238,000020,480
3Oct 13, 2026 18:482,5486,011,317,0432,243,000020,480
4Oct 13, 2026 18:482,5566,011,253,8522,250,000020,480
5Oct 13, 2026 18:482,5656,011,789,9502,258,000020,480
6Oct 13, 2026 18:482,5726,011,895,5952,264,000020,480
7Oct 13, 2026 18:482,6046,011,359,5302,292,000020,480
8Oct 13, 2026 18:482,7466,011,910,3262,417,000020,480
9Oct 13, 2026 18:482,7696,011,456,1582,437,000020,480