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 15:33olliecrowolliecrowScore: 32,839Success
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 15:3332,55851,943,63727,628,0001,023,0002,514,944
2Feb 14, 2026 15:3332,59958,627,99427,663,0001,024,0002,514,944
3Feb 14, 2026 15:3332,62356,385,46128,708,00002,506,752
4Feb 14, 2026 15:3332,68159,924,54627,732,0001,027,0002,359,296
5Feb 14, 2026 15:3332,83954,152,20927,902,000996,0002,510,848
6Feb 14, 2026 15:3332,84355,067,95926,909,0001,993,0002,510,848
7Feb 14, 2026 15:3332,85256,666,83427,914,000996,0002,510,848
8Feb 14, 2026 15:3332,87052,079,94928,926,00002,510,848
9Feb 14, 2026 15:3332,91147,958,91427,964,000998,0002,510,848