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 listJul 26, 2025 15:40vahookvahookScore: 7,859Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 26, 2025 15:407,85528,278,1025,925,000987,0002,531,328
2Jul 26, 2025 15:407,85624,755,7815,926,000987,0002,355,200
3Jul 26, 2025 15:407,85726,585,5336,914,00002,531,328
4Jul 26, 2025 15:407,85925,375,1426,916,00002,359,296
5Jul 26, 2025 15:407,85923,136,5615,928,000988,0002,531,328
6Jul 26, 2025 15:407,86122,001,4645,930,000988,0002,367,488
7Jul 26, 2025 15:407,86324,454,1234,942,0001,977,0002,531,328
8Jul 26, 2025 15:407,86420,775,1656,920,00002,531,328
9Jul 26, 2025 15:407,99822,618,7016,033,0001,005,0002,367,488