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 6, 2026 04:23zielajzielajScore: 196,802Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 6, 2026 04:13194,818197,186,331170,438,0001,002,0002,310,144
2Feb 6, 2026 04:14194,878196,240,893171,493,00002,277,376
3Feb 6, 2026 04:23196,039197,917,411170,520,0001,994,0002,297,856
4Feb 6, 2026 04:14196,491198,410,435170,914,0001,998,0002,297,856
5Feb 6, 2026 04:13196,802191,424,056173,186,00002,277,376
6Feb 6, 2026 04:23197,211198,101,588173,546,00002,293,760
7Feb 6, 2026 04:23197,236197,558,073173,568,00002,277,376
8Feb 6, 2026 04:14198,028193,874,798174,265,00002,297,856
9Feb 6, 2026 04:13282,565274,964,459247,659,000998,0002,277,376