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 19:38Johan SannemoJohan SannemoScore: 89,607Success
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 19:3889,301102,182,94476,570,0002,015,0002,527,232
2Jan 19, 2026 19:3889,445105,380,50477,703,0001,009,0002,265,088
3Jan 19, 2026 19:3889,460103,606,21377,716,0001,009,0002,281,472
4Jan 19, 2026 19:3889,483104,070,76278,745,00002,363,392
5Jan 19, 2026 19:3889,607101,992,99376,858,0001,996,0002,281,472
6Jan 19, 2026 19:3889,616105,078,36477,864,000998,0002,519,040
7Jan 19, 2026 19:3889,730105,035,64476,963,0001,999,0002,281,472
8Jan 19, 2026 19:3889,769106,574,04477,998,000999,0002,269,184
9Jan 19, 2026 19:3890,766105,479,36878,876,000998,0002,281,472