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 21, 2026 23:51Josu San MartinJosu San MartinScore: 10,063Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 21, 2026 23:5310,03619,045,3997,826,0001,006,0002,117,632
2May 21, 2026 23:5310,04018,971,6728,836,00002,113,536
3May 21, 2026 23:5310,05219,807,3977,837,0001,009,0002,117,632
4May 21, 2026 23:5310,05919,681,2957,838,0001,014,0002,117,632
5May 21, 2026 23:5310,06318,370,0817,854,0001,002,0002,113,536
6May 21, 2026 23:5310,06420,192,1777,852,0001,005,0002,117,632
7May 21, 2026 23:5310,06717,975,6357,847,0001,012,0002,117,632
8May 21, 2026 23:5310,08720,440,8087,863,0001,014,0002,117,632
9May 21, 2026 23:5310,10421,068,0847,878,0001,014,0002,117,632