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 03:45zielajzielajScore: 200,408Success
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 03:47198,855197,591,261173,993,000999,0002,277,376
2Feb 6, 2026 03:45199,119195,827,246175,225,00002,379,776
3Feb 6, 2026 03:47200,236194,902,728176,208,00002,277,376
4Feb 6, 2026 03:47200,408195,236,747176,359,00002,383,872
5Feb 6, 2026 03:45200,943204,322,509175,831,000999,0002,375,680
6Feb 6, 2026 03:45290,161275,502,135254,341,0001,001,0002,277,376