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 listMar 7, 2025 22:46KeefeKeefeScore: 110,022Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 7, 2025 22:46109,342120,290,24994,217,0002,004,0002,281,472
2Mar 7, 2025 22:46109,585125,061,16095,431,0001,004,0002,285,568
3Mar 7, 2025 22:46109,658119,967,47396,499,00002,293,760
4Mar 7, 2025 22:46109,755124,120,21495,578,0001,006,0002,277,376
5Mar 7, 2025 22:46110,022127,404,02694,823,0001,996,0002,281,472
6Mar 7, 2025 22:46110,167123,145,39894,949,0001,998,0002,293,760
7Mar 7, 2025 22:46110,253120,783,42095,023,0002,000,0002,293,760
8Mar 7, 2025 22:46110,284123,296,77495,049,0002,001,0002,293,760
9Mar 7, 2025 22:46110,345124,205,70096,103,0001,001,0002,293,760