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 03:15mgildermgilderScore: 3,676,652Success
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 03:153,659,9493,243,478,2553,218,756,0001,999,0002,363,392
2Feb 8, 2025 03:153,666,0783,258,571,1083,225,150,000999,0002,289,664
3Feb 8, 2025 03:153,669,5403,256,267,9423,227,197,0001,998,0002,375,680
4Feb 8, 2025 03:153,673,0653,264,336,0413,231,298,000999,0002,289,664
5Feb 8, 2025 03:153,676,6523,259,480,0343,234,455,000999,0002,281,472
6Feb 8, 2025 03:153,690,7013,273,849,7743,245,818,0001,999,0002,289,664
7Feb 8, 2025 03:153,691,7893,271,983,8003,247,775,000999,0002,289,664
8Feb 8, 2025 03:153,692,2663,276,842,6753,248,195,000999,0002,281,472
9Feb 8, 2025 03:153,694,6773,279,498,7123,250,317,000999,0002,281,472