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 29, 2026 13:38olliecrowolliecrowScore: 12,102Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 29, 2026 13:4012,06228,296,0979,554,0001,061,0002,330,624
2Apr 29, 2026 13:4012,07529,271,0529,564,0001,062,0002,449,408
3Apr 29, 2026 13:4012,07625,302,3349,565,0001,062,0002,420,736
4Apr 29, 2026 13:4012,08134,620,3759,569,0001,063,0002,437,120
5Apr 29, 2026 13:4012,10230,144,4119,585,0001,065,0002,330,624
6Apr 29, 2026 13:4012,12726,395,8909,605,0001,067,0002,437,120
7Apr 29, 2026 13:4012,13128,098,1509,609,0001,067,0002,506,752
8Apr 29, 2026 13:4012,21034,541,8349,671,0001,074,0002,428,928
9Apr 29, 2026 13:4012,31427,369,2398,867,0001,970,0002,330,624