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 9, 2026 15:22Karthik ReddyKarthik ReddyScore: 2,526Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 9, 2026 15:372,50710,825,4002,207,000024,576
2Oct 9, 2026 15:372,51710,759,3122,215,000024,576
3Oct 9, 2026 15:372,52110,668,1532,219,000024,576
4Oct 9, 2026 15:372,52510,760,0102,222,000024,576
5Oct 9, 2026 15:372,52610,873,1262,223,000024,576
6Oct 9, 2026 15:372,52910,919,7612,226,000024,576
7Oct 9, 2026 15:372,53010,831,5822,227,000024,576
8Oct 9, 2026 15:372,53010,882,6842,227,000024,576
9Oct 9, 2026 15:372,71423,838,0002,389,000024,576