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:19Johan SannemoJohan SannemoScore: 33,348Success
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:4033,16653,041,47728,180,0001,006,0002,527,232
2Jan 19, 2026 23:1933,19052,651,66427,193,0002,014,0002,281,472
3Jan 19, 2026 23:4033,19053,130,05728,200,0001,007,0002,277,376
4Jan 19, 2026 23:4033,32457,021,48529,325,00002,523,136
5Jan 19, 2026 23:2033,34155,611,31128,329,0001,011,0002,281,472
6Jan 19, 2026 23:4033,34354,304,47729,342,00002,519,040
7Jan 19, 2026 23:2033,34854,343,76428,335,0001,011,0002,277,376
8Jan 19, 2026 23:2033,37356,015,73228,356,0001,012,0002,519,040
9Jan 19, 2026 23:1933,44951,552,41528,420,0001,015,0002,277,376
10Jan 19, 2026 23:4033,50952,539,02628,472,0001,016,0002,277,376
11Jan 19, 2026 23:4033,51954,784,45928,480,0001,017,0002,277,376
12Jan 19, 2026 23:1933,79056,348,38427,753,0001,982,0002,277,376