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:24Johan SannemoJohan SannemoScore: 89,765Success
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:2489,409107,303,33477,672,0001,008,0002,281,472
2Jan 19, 2026 19:2489,445110,967,22777,703,0001,009,0002,273,280
3Jan 19, 2026 19:2489,602111,702,23877,852,000998,0002,281,472
4Jan 19, 2026 19:2489,741102,207,86776,973,0001,999,0002,281,472
5Jan 19, 2026 19:2489,765100,521,56276,994,0001,999,0002,269,184
6Jan 19, 2026 19:2489,814100,494,33478,036,0001,000,0002,281,472
7Jan 19, 2026 19:2489,851101,327,78477,068,0002,001,0002,281,472
8Jan 19, 2026 19:2489,982106,296,61478,182,0001,002,0002,281,472
9Jan 19, 2026 19:2490,42799,721,62978,569,0001,007,0002,281,472