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:26Josu San MartinJosu San MartinScore: 12,053Success
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:3111,97121,793,6469,412,0001,123,0002,113,536
2May 19, 2026 09:3112,01020,576,6769,434,0001,135,0002,121,728
3May 19, 2026 09:3112,02020,523,2599,447,0001,131,0002,113,536
4May 19, 2026 09:3112,04620,195,3709,432,0001,169,0002,117,632
5May 19, 2026 09:3112,05322,006,1909,483,0001,124,0002,113,536
6May 19, 2026 09:3112,06121,653,0089,488,0001,126,0002,113,536
7May 19, 2026 09:3112,09321,584,6599,496,0001,146,0002,117,632
8May 19, 2026 09:3112,12321,873,8409,526,0001,143,0002,113,536
9May 19, 2026 09:3112,25919,961,9159,735,0001,053,0002,121,728