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 listDec 19, 2024 13:25zielajzielajScore: 4,659Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 19, 2024 13:284,59822,257,7803,035,0001,011,0002,277,376
2Dec 19, 2024 13:284,60120,835,2203,037,0001,012,0002,494,464
3Dec 19, 2024 13:244,60717,616,2464,054,00002,535,424
4Dec 19, 2024 13:244,61920,700,3833,049,0001,016,0002,490,368
5Dec 19, 2024 13:254,65920,643,3753,075,0001,025,0002,490,368
6Dec 19, 2024 13:254,71418,306,2253,111,0001,037,0002,494,464
7Dec 19, 2024 13:254,77321,216,9933,150,0001,050,0002,490,368
8Dec 19, 2024 13:284,81819,971,9683,180,0001,060,0002,277,376
9Dec 19, 2024 13:244,82523,283,5533,185,0001,061,0002,494,464