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 18, 2026 07:39mgildermgilderScore: 82,849Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 18, 2026 07:3982,54598,873,95971,632,0001,008,0002,289,664
2Jan 18, 2026 07:3982,67398,350,94971,742,0001,010,0002,289,664
3Jan 18, 2026 07:3982,79199,408,17171,858,000998,0002,453,504
4Jan 18, 2026 07:3982,84398,701,80270,905,0001,997,0002,289,664
5Jan 18, 2026 07:3982,849100,654,46770,910,0001,997,0002,355,200
6Jan 18, 2026 07:3982,99296,373,15671,033,0002,000,0002,289,664
7Jan 18, 2026 07:3983,06396,464,04572,094,0001,001,0002,355,200
8Jan 18, 2026 07:3983,09995,430,18671,124,0002,003,0002,289,664
9Jan 18, 2026 07:3983,47395,327,67373,456,00002,363,392