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 00:29Josu San MartinJosu San MartinScore: 14,448Success
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 00:3214,42122,703,11410,648,0002,043,0002,113,536
2May 22, 2026 00:3214,43022,404,65110,651,0002,048,0002,113,536
3May 22, 2026 00:3214,44222,939,26510,653,0002,056,0002,113,536
4May 22, 2026 00:3214,44723,870,98110,589,0002,125,0002,113,536
5May 22, 2026 00:3214,44824,399,57010,664,0002,051,0002,113,536
6May 22, 2026 00:3214,46123,462,33310,671,0002,055,0002,113,536
7May 22, 2026 00:3214,46422,437,96910,675,0002,054,0002,113,536
8May 22, 2026 00:3214,49724,715,67310,637,0002,121,0002,113,536
9May 22, 2026 00:3214,52521,937,69910,716,0002,066,0002,113,536