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 20, 2026 00:22Johan SannemoJohan SannemoScore: 26,269Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 20, 2026 00:2226,18948,889,94222,044,0001,002,0002,519,040
2Jan 20, 2026 00:2226,20342,924,17522,057,0001,002,0002,281,472
3Jan 20, 2026 00:2226,24247,074,48421,085,0002,008,0002,510,848
4Jan 20, 2026 00:2226,24847,656,00921,090,0002,008,0002,281,472
5Jan 20, 2026 00:2226,26948,425,56121,107,0002,010,0002,523,136
6Jan 20, 2026 00:2226,35850,914,45421,178,0002,017,0002,510,848
7Jan 20, 2026 00:2226,45145,959,67321,253,0002,024,0002,265,088
8Jan 20, 2026 00:2226,45248,990,49221,254,0002,024,0002,281,472
9Jan 20, 2026 00:2226,45346,615,37322,267,0001,012,0002,519,040