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 listAug 21, 2026 18:25Andrew EpsteinAndrew EpsteinScore: 804,531Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 21, 2026 18:27758,317697,323,485662,512,0004,807,0002,121,728stderr
2Aug 21, 2026 18:27767,780705,573,105671,016,0004,631,0002,121,728stderr
3Aug 21, 2026 18:27783,997720,601,190685,234,0004,684,0002,121,728stderr
4Aug 21, 2026 18:27785,445721,190,296686,512,0004,680,0002,121,728stderr
5Aug 21, 2026 18:27804,531737,950,107703,356,0004,632,0002,121,728stderr
6Aug 21, 2026 18:27819,280750,919,604716,126,0004,841,0002,121,728stderr
7Aug 21, 2026 18:27863,209789,617,235755,084,0004,540,0002,121,728stderr
8Aug 21, 2026 18:27910,562831,434,104796,487,0004,808,0002,121,728stderr
9Aug 21, 2026 18:27953,377869,017,355834,354,0004,618,0002,121,728stderr