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 listMay 5, 2024 09:07Ivan BessonovIvan BessonovScore: 46,030Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 5, 2024 09:0745,69363,015,50038,200,0002,010,0002,289,664
2May 5, 2024 09:0745,78163,642,35738,273,0002,014,0002,289,664
3May 5, 2024 09:0745,83666,150,89939,328,0001,008,0002,289,664
4May 5, 2024 09:0745,88063,519,19940,374,00002,269,184
5May 5, 2024 09:0745,88362,978,65839,368,0001,009,0002,269,184
6May 5, 2024 09:0745,96661,686,52739,439,0001,011,0002,289,664
7May 5, 2024 09:0746,03067,087,61539,494,0001,012,0002,289,664
8May 5, 2024 09:0746,03264,202,26639,496,0001,012,0002,269,184
9May 5, 2024 09:0746,08462,723,83239,541,0001,013,0002,289,664
10May 5, 2024 09:0746,223116,433,68440,676,50002,273,280
11May 5, 2024 09:0746,360111,318,63840,796,62502,260,992
12May 5, 2024 09:0746,370102,405,32040,805,19802,256,896