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:12Josu San MartinJosu San MartinScore: 10,234Success
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:1410,15720,307,9058,939,00002,117,632
2May 22, 2026 00:1410,15919,684,5707,934,0001,006,0002,117,632
3May 22, 2026 00:1410,16019,856,7637,939,0001,002,0002,117,632
4May 22, 2026 00:1410,23418,840,6628,001,0001,005,0002,117,632
5May 22, 2026 00:1410,23421,079,8717,997,0001,009,0002,113,536
6May 22, 2026 00:1410,26419,840,1977,974,0001,059,0002,117,632
7May 22, 2026 00:1410,29218,118,6048,005,0001,052,0002,117,632
8May 22, 2026 00:1410,29420,191,3547,989,0001,070,0002,117,632
9May 22, 2026 00:1410,30420,399,5318,002,0001,066,0002,117,632