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 7, 2026 03:35zielajzielajScore: 200,070Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 7, 2026 03:35196,513196,587,498171,932,000999,0002,351,104
2Feb 7, 2026 03:35198,652205,416,917173,816,000998,0002,277,376
3Feb 7, 2026 03:36199,410199,297,717174,479,0001,002,0002,347,008
4Feb 7, 2026 03:36199,902204,479,700174,915,000999,0002,342,912
5Feb 7, 2026 03:35200,070195,720,638175,062,0001,000,0002,342,912
6Feb 7, 2026 03:35200,478197,621,338176,421,00002,277,376
7Feb 7, 2026 03:36273,688260,930,884239,846,000999,0002,277,376
8Feb 7, 2026 03:35283,964275,429,247248,889,000999,0002,347,008
9Feb 7, 2026 03:35287,474279,276,073250,978,0001,999,0002,277,376