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 listJan 24, 2026 20:35zielajzielajScore: 3,557Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 24, 2026 20:363,37820,096,7611,982,000991,0002,355,200
2Jan 24, 2026 20:353,43621,563,0481,008,0002,016,0002,277,376
3Jan 24, 2026 20:363,49220,506,6122,049,0001,024,0002,535,424
4Jan 24, 2026 20:363,55717,063,7311,043,0002,087,0002,277,376
5Jan 24, 2026 20:354,21723,047,2613,711,00002,351,104
6Jan 24, 2026 20:354,26019,444,6163,749,00002,351,104