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 23:36Aleksei ShahoikaAleksei ShahoikaScore: 44,825Success
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 23:3944,67048,926,87139,310,00002,113,536
2May 10, 2026 23:3944,67147,850,69939,311,00002,113,536
3May 10, 2026 23:3944,78150,375,66539,408,00002,113,536
4May 10, 2026 23:3944,78447,902,20939,410,00002,113,536
5May 10, 2026 23:3944,82548,348,65938,439,0001,007,0002,113,536
6May 10, 2026 23:3944,83051,108,53839,451,00002,113,536
7May 10, 2026 23:3944,83248,027,52639,453,00002,113,536
8May 10, 2026 23:3944,87650,561,25239,491,00002,113,536
9May 10, 2026 23:3944,87848,757,62539,493,00002,113,536