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:44Josu San MartinJosu San MartinScore: 100,454Success
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:4799,96297,931,81686,953,0001,014,0002,113,536
2May 21, 2026 23:47100,20397,293,27287,111,0001,068,0002,113,536
3May 21, 2026 23:47100,32897,395,23887,239,0001,050,0002,113,536
4May 21, 2026 23:47100,42698,835,98187,326,0001,049,0002,113,536
5May 21, 2026 23:47100,45499,469,28387,344,0001,056,0002,113,536
6May 21, 2026 23:47100,74498,202,13287,598,0001,057,0002,113,536
7May 21, 2026 23:47100,86999,499,08587,692,0001,073,0002,113,536
8May 21, 2026 23:47100,88999,746,17987,769,0001,014,0002,113,536
9May 21, 2026 23:47100,91198,449,05087,737,0001,065,0002,113,536