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:52Pavel SkripkinPavel SkripkinScore: 30,485Success
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:5530,42034,806,37426,770,00002,117,632
2May 25, 2026 19:5530,43036,964,84726,779,00002,117,632
3May 25, 2026 19:5530,43134,833,70726,780,00002,117,632
4May 25, 2026 19:5530,44834,885,47626,795,00002,117,632
5May 25, 2026 19:5530,48536,197,16026,827,00002,117,632
6May 25, 2026 19:5530,53535,541,33026,871,00002,117,632
7May 25, 2026 19:5530,58136,132,76126,912,00002,117,632
8May 25, 2026 19:5530,60137,140,38126,929,00002,117,632
9May 25, 2026 19:5530,63235,980,05526,957,00002,117,632