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 8, 2026 02:42Karthik ReddyKarthik ReddyScore: 2,520Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 8, 2026 02:442,50411,083,2172,204,000020,480
2Oct 8, 2026 02:442,51010,941,2402,209,000020,480
3Oct 8, 2026 02:442,51710,950,6222,215,000020,480
4Oct 8, 2026 02:442,51811,021,5742,216,000020,480
5Oct 8, 2026 02:442,52011,022,7852,218,000020,480
6Oct 8, 2026 02:442,52211,090,3582,220,000020,480
7Oct 8, 2026 02:442,52810,974,1492,225,000020,480
8Oct 8, 2026 02:442,52811,023,4702,225,000020,480
9Oct 8, 2026 02:442,53011,116,8202,227,000020,480