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 7, 2026 23:57Karthik ReddyKarthik ReddyScore: 2,611Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 7, 2026 23:592,59711,007,8642,286,000020,480
2Oct 7, 2026 23:592,59811,027,2202,287,000020,480
3Oct 7, 2026 23:592,60411,523,9172,292,000020,480
4Oct 7, 2026 23:592,60510,970,7472,293,000020,480
5Oct 7, 2026 23:592,61110,879,9302,298,000020,480
6Oct 7, 2026 23:592,61411,499,9002,301,000020,480
7Oct 7, 2026 23:592,61911,097,7462,305,000020,480
8Oct 7, 2026 23:592,62611,043,4382,311,000020,480
9Oct 7, 2026 23:592,65111,160,4062,333,000020,480