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 26, 2026 20:15Pavel SkripkinPavel SkripkinScore: 54,253Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 26, 2026 20:1753,97960,895,27346,492,0001,010,0002,334,720
2Apr 26, 2026 20:1754,07859,767,27046,577,0001,012,0002,424,832
3Apr 26, 2026 20:1754,08864,772,93546,586,0001,012,0002,416,640
4Apr 26, 2026 20:1754,17865,627,84346,663,0001,014,0002,498,560
5Apr 26, 2026 20:1754,25366,042,43346,728,0001,015,0002,428,928
6Apr 26, 2026 20:1754,37669,489,73545,858,0001,993,0002,420,736
7Apr 26, 2026 20:1754,44064,315,69245,912,0001,996,0002,334,720
8Apr 26, 2026 20:1754,46762,582,05446,933,000998,0002,334,720
9Apr 26, 2026 20:1754,47063,792,15246,936,000998,0002,334,720