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 19, 2026 09:14Josu San MartinJosu San MartinScore: 10,756Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 19, 2026 09:1710,61418,517,9669,341,00002,117,632
2May 19, 2026 09:1710,64019,999,8598,356,0001,008,0002,117,632
3May 19, 2026 09:1710,65920,235,3869,380,00002,117,632
4May 19, 2026 09:1710,75520,419,1718,404,0001,061,0002,117,632
5May 19, 2026 09:1710,75619,274,4068,401,0001,065,0002,117,632
6May 19, 2026 09:1710,78119,230,2478,423,0001,065,0002,117,632
7May 19, 2026 09:1710,81921,283,3198,454,0001,067,0002,117,632
8May 19, 2026 09:1710,83918,644,2908,422,0001,117,0002,117,632
9May 19, 2026 09:1710,96021,529,4398,508,0001,137,0002,113,536