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 listApr 30, 2026 13:19olliecrowolliecrowScore: 12,396Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 30, 2026 13:2012,31328,732,5089,632,0001,204,0002,453,504
2Apr 30, 2026 13:2012,31926,352,0178,870,0001,971,0002,449,408
3Apr 30, 2026 13:2012,35324,708,7858,895,0001,976,0002,449,408
4Apr 30, 2026 13:2012,39327,414,4227,932,0002,974,0002,445,312
5Apr 30, 2026 13:2012,39627,294,8318,926,0001,983,0002,449,408
6Apr 30, 2026 13:2012,42536,786,6207,654,0003,280,0002,445,312
7Apr 30, 2026 13:2012,43829,324,5638,956,0001,990,0002,420,736
8Apr 30, 2026 13:2012,44629,371,6418,962,0001,991,0002,445,312
9Apr 30, 2026 13:2012,52624,035,3229,019,0002,004,0002,445,312