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 listJan 9, 2025 12:47Alex KentAlex KentScore: 768,618Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 9, 2025 12:47766,889702,717,672672,863,0001,999,0002,289,664
2Jan 9, 2025 12:47767,330704,228,900674,250,0001,000,0002,269,184
3Jan 9, 2025 12:47768,406703,450,980675,197,0001,000,0002,289,664
4Jan 9, 2025 12:47768,523698,829,719675,300,0001,000,0002,523,136
5Jan 9, 2025 12:47768,618706,769,765675,385,000999,0002,289,664
6Jan 9, 2025 12:47768,716700,206,422675,471,000999,0002,289,664
7Jan 9, 2025 12:47768,816705,896,371674,560,0001,998,0002,289,664
8Jan 9, 2025 12:47769,402704,363,983675,074,0002,000,0002,273,280
9Jan 9, 2025 12:47769,794709,284,227676,419,0001,000,0002,289,664