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 10, 2026 22:35Aleksei ShahoikaAleksei ShahoikaScore: 44,678Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 10, 2026 22:3944,57648,286,30939,227,00002,113,536
2May 10, 2026 22:3944,59048,431,11239,240,00002,113,536
3May 10, 2026 22:3944,61847,876,30139,264,00002,113,536
4May 10, 2026 22:3944,62049,912,28639,266,00002,113,536
5May 10, 2026 22:3944,67849,695,49939,317,00002,113,536
6May 10, 2026 22:3944,69450,313,94039,331,00002,113,536
7May 10, 2026 22:3944,70147,935,76639,337,00002,113,536
8May 10, 2026 22:3944,70150,820,62038,323,0001,014,0002,113,536
9May 10, 2026 22:3944,81249,894,20739,435,00002,113,536