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 4, 2026 23:35olliecrowolliecrowScore: 11,720Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 4, 2026 23:3811,55624,666,5329,118,0001,052,0002,441,216
2May 4, 2026 23:3811,58128,202,4569,139,0001,053,0002,461,696
3May 4, 2026 23:3811,66426,359,8639,150,0001,115,0002,457,600
4May 4, 2026 23:3811,69227,195,7959,141,0001,148,0002,453,504
5May 4, 2026 23:3811,72030,112,1739,158,0001,156,0002,461,696
6May 4, 2026 23:3811,73525,140,3829,181,0001,146,0002,445,312
7May 4, 2026 23:3811,74026,319,9669,174,0001,158,0002,461,696
8May 4, 2026 23:3811,74827,208,4029,201,0001,138,0002,457,600
9May 4, 2026 23:3811,75726,713,9139,204,0001,143,0002,449,408