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 listFeb 8, 2025 06:08mgildermgilderScore: 1,378,751Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 8, 2025 06:081,373,8111,230,343,9681,207,955,000999,0002,367,488
2Feb 8, 2025 06:081,377,0311,234,464,1331,210,788,000999,0002,367,488
3Feb 8, 2025 06:081,378,2261,233,893,4991,212,839,00002,367,488
4Feb 8, 2025 06:081,378,6191,240,981,4581,212,185,0001,000,0002,289,664
5Feb 8, 2025 06:081,378,7511,240,847,1221,211,303,0001,998,0002,289,664
6Feb 8, 2025 06:081,380,2601,242,973,4731,212,630,0001,999,0002,371,584
7Feb 8, 2025 06:081,383,5731,243,743,8481,216,545,000999,0002,289,664
8Feb 8, 2025 06:081,384,1881,242,649,2921,218,085,00002,289,664
9Feb 8, 2025 06:081,386,8571,247,473,0211,219,435,000999,0002,367,488