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 listApr 23, 2026 12:35Charles CabergsCharles CabergsScore: 30,632Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 23, 2026 12:3630,50747,383,03124,782,0002,065,0002,437,120
2Apr 23, 2026 12:3630,55644,999,85023,903,0002,987,0002,445,312
3Apr 23, 2026 12:3630,57648,616,00823,918,0002,989,0002,424,832
4Apr 23, 2026 12:3630,60048,909,81423,936,0002,992,0002,424,832
5Apr 23, 2026 12:3630,63243,535,90623,962,0002,995,0002,416,640
6Apr 23, 2026 12:3630,63843,265,98023,967,0002,995,0002,437,120
7Apr 23, 2026 12:3630,78545,346,56224,081,0003,010,0002,437,120
8Apr 23, 2026 12:3630,80045,438,60624,093,0003,011,0002,420,736
9Apr 23, 2026 12:3630,83546,165,88824,120,0003,015,0002,424,832