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 17, 2026 20:04zielajzielajScore: 2,906Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 20:062,80011,683,4522,464,00002,113,536
2May 17, 2026 20:062,81013,001,0152,473,00002,113,536
3May 17, 2026 20:062,90011,864,1982,552,00002,113,536
4May 17, 2026 20:062,90311,712,6312,555,00002,113,536
5May 17, 2026 20:062,90612,006,1162,558,00002,113,536
6May 17, 2026 20:062,94312,193,6962,590,00002,113,536
7May 17, 2026 20:062,94710,174,1112,594,00002,113,536
8May 17, 2026 20:062,94811,567,3392,595,00002,113,536
9May 17, 2026 20:063,46313,559,6103,048,00002,113,536