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 24, 2026 21:26Pavel SkripkinPavel SkripkinScore: 106,475Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 24, 2026 21:27105,931111,476,35093,220,00002,428,928
2Apr 24, 2026 21:27106,088111,440,93892,355,0001,003,0002,433,024
3Apr 24, 2026 21:27106,237110,458,07592,484,0001,005,0002,433,024
4Apr 24, 2026 21:27106,375113,380,47693,610,00002,445,312
5Apr 24, 2026 21:27106,475114,428,35792,691,0001,007,0002,437,120
6Apr 24, 2026 21:27106,570106,455,80991,787,0001,995,0002,330,624
7Apr 24, 2026 21:27107,247110,546,40393,374,0001,004,0002,441,216
8Apr 24, 2026 21:27107,322108,732,57593,440,0001,004,0002,437,120
9Apr 24, 2026 21:27107,359110,203,26893,471,0001,005,0002,326,528