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 01:53zielajzielajScore: 198,619Success
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 01:49196,593194,189,692172,002,0001,000,0002,277,376
2Feb 6, 2026 01:54196,638200,719,756172,041,0001,000,0002,359,296
3Feb 6, 2026 01:49197,134196,512,083173,478,00002,347,008
4Feb 6, 2026 01:53197,763201,222,923173,031,0001,000,0002,355,200
5Feb 6, 2026 01:54198,619202,953,761173,787,000998,0002,277,376
6Feb 6, 2026 01:53199,640200,497,424175,683,00002,355,200
7Feb 6, 2026 01:54199,734202,514,191174,768,000998,0002,351,104
8Feb 6, 2026 01:49199,858196,594,752174,876,000999,0002,351,104
9Feb 6, 2026 01:53199,868201,695,354174,885,000999,0002,277,376