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 17, 2026 15:06Josu San MartinJosu San MartinScore: 22,060Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 17, 2026 15:0621,98145,382,91119,343,00002,351,104
2Jan 17, 2026 15:0622,01141,670,93618,351,0001,019,0002,523,136
3Jan 17, 2026 15:0622,02844,847,17719,385,00002,273,280
4Jan 17, 2026 15:0622,04454,093,55219,399,00002,445,312
5Jan 17, 2026 15:0622,06038,873,69118,392,0001,021,0002,281,472
6Jan 17, 2026 15:0622,10945,350,74318,432,0001,024,0002,453,504
7Jan 17, 2026 15:0622,14241,997,88318,460,0001,025,0002,523,136
8Jan 17, 2026 15:0622,21539,188,51118,521,0001,028,0002,453,504
9Jan 17, 2026 15:0622,26343,724,83418,560,0001,031,0002,453,504