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 listMay 22, 2026 01:07Josu San MartinJosu San MartinScore: 100,459Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 22, 2026 01:09100,24599,114,17287,147,0001,069,0002,113,536
2May 22, 2026 01:09100,332101,934,55987,213,0001,080,0002,113,536
3May 22, 2026 01:09100,38597,804,59087,313,0001,026,0002,113,536
4May 22, 2026 01:09100,45199,335,54487,380,0001,017,0002,113,536
5May 22, 2026 01:09100,45999,845,52487,404,0001,000,0002,113,536
6May 22, 2026 01:09100,96399,765,32587,823,0001,025,0002,113,536
7May 22, 2026 01:09100,97898,004,23287,794,0001,067,0002,113,536
8May 22, 2026 01:09101,08999,822,72387,899,0001,060,0002,113,536
9May 22, 2026 01:09101,12198,305,51787,905,0001,082,0002,113,536