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 25, 2026 19:39Pavel SkripkinPavel SkripkinScore: 40,065Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 25, 2026 19:4139,97842,933,75735,181,00002,117,632
2May 25, 2026 19:4139,98245,894,90335,185,00002,117,632
3May 25, 2026 19:4139,99546,009,31535,196,00002,117,632
4May 25, 2026 19:4139,99645,564,73035,197,00002,117,632
5May 25, 2026 19:4140,06542,926,34535,258,00002,117,632
6May 25, 2026 19:4140,10645,118,29435,294,00002,117,632
7May 25, 2026 19:4140,13643,001,20035,320,00002,117,632
8May 25, 2026 19:4140,19543,229,00035,372,00002,117,632
9May 25, 2026 19:4140,26044,974,46135,429,00002,117,632