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:39Josu San MartinJosu San MartinScore: 12,171Success
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:4212,13521,869,9928,612,0002,067,0002,117,632
2May 22, 2026 00:4212,14021,074,0528,615,0002,069,0002,117,632
3May 22, 2026 00:4212,14521,581,4998,609,0002,079,0002,117,632
4May 22, 2026 00:4212,16422,888,6388,620,0002,085,0002,117,632
5May 22, 2026 00:4212,17121,568,7418,634,0002,077,0002,117,632
6May 22, 2026 00:4212,27523,045,7498,697,0002,105,0002,117,632
7May 22, 2026 00:4212,32322,842,1278,721,0002,124,0002,117,632
8May 22, 2026 00:4212,33520,111,2778,730,0002,125,0002,117,632
9May 22, 2026 00:4212,35020,983,4718,762,0002,106,0002,113,536