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 listFeb 14, 2026 13:01olliecrowolliecrowScore: 35,158Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 14, 2026 13:0135,11456,699,53529,904,000996,0002,498,560
2Feb 14, 2026 13:0135,12360,835,09729,911,000997,0002,494,464
3Feb 14, 2026 13:0135,12457,657,06429,912,000997,0002,498,560
4Feb 14, 2026 13:0135,13555,822,51229,922,000997,0002,498,560
5Feb 14, 2026 13:0135,15856,492,62029,941,000998,0002,498,560
6Feb 14, 2026 13:0135,19755,236,17729,974,000999,0002,498,560
7Feb 14, 2026 13:0135,19959,008,36029,976,000999,0002,490,368
8Feb 14, 2026 13:0135,22057,767,10929,995,000999,0002,498,560
9Feb 14, 2026 13:0135,43456,940,91630,177,0001,005,0002,498,560