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 31, 2026 21:42vahookvahookScore: 4,451Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 31, 2026 21:414,34819,126,0762,551,0001,275,0002,486,272
2Jan 31, 2026 21:414,40520,886,1921,938,0001,938,0002,277,376
3Jan 31, 2026 21:414,44516,514,4011,956,0001,956,0002,482,176
4Jan 31, 2026 21:414,44520,427,7111,956,0001,956,0002,277,376
5Jan 31, 2026 21:414,44823,307,2861,957,0001,957,0002,277,376
6Jan 31, 2026 21:424,44821,234,9491,957,0001,957,0002,277,376
7Jan 31, 2026 21:424,45126,482,9512,938,000979,0002,490,368
8Jan 31, 2026 21:414,45224,461,9441,959,0001,959,0002,277,376
9Jan 31, 2026 21:414,45222,062,6491,959,0001,959,0002,510,848
10Jan 31, 2026 21:424,45516,277,2071,960,0001,960,0002,490,368
11Jan 31, 2026 21:414,45724,257,6481,961,0001,961,0002,478,080
12Jan 31, 2026 21:414,46421,859,8632,946,000982,0002,482,176