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 19, 2026 23:14Johan SannemoJohan SannemoScore: 34,023Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 19, 2026 23:1433,75563,111,66928,680,0001,024,0002,281,472
2Jan 19, 2026 23:1433,81959,955,67629,761,00002,281,472
3Jan 19, 2026 23:1433,97756,288,71227,907,0001,993,0002,281,472
4Jan 19, 2026 23:1434,02352,661,43127,944,0001,996,0002,527,232
5Jan 19, 2026 23:1434,02552,444,81427,946,0001,996,0002,281,472
6Jan 19, 2026 23:1434,18057,851,73329,076,0001,002,0002,281,472