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 listJun 21, 2026 22:33Josu San MartinJosu San MartinScore: 44,304Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 21, 2026 22:3544,20747,852,06336,844,0002,059,0002,113,536
2Jun 21, 2026 22:3544,24647,944,02836,846,0002,091,0002,113,536
3Jun 21, 2026 22:3544,25147,892,47536,841,0002,100,0002,113,536
4Jun 21, 2026 22:3544,28148,323,10536,836,0002,132,0002,113,536
5Jun 21, 2026 22:3544,30447,932,67936,914,0002,074,0002,113,536
6Jun 21, 2026 22:3544,31548,016,10636,927,0002,071,0002,113,536
7Jun 21, 2026 22:3544,31848,341,60436,915,0002,085,0002,113,536
8Jun 21, 2026 22:3544,46148,083,17637,039,0002,087,0002,113,536
9Jun 21, 2026 22:3544,53648,111,71437,115,0002,077,0002,113,536