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 16:23Ivan BessonovIvan BessonovScore: 48,520Success
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 16:2344,996103,472,68139,596,51902,260,992
2May 5, 2024 16:2345,07899,446,35739,668,52502,256,896
3May 5, 2024 16:2345,133122,775,94339,717,17002,256,896
4May 5, 2024 16:2348,30663,727,38742,509,00002,289,664
5May 5, 2024 16:2348,47866,321,97541,646,0001,015,0002,387,968
6May 5, 2024 16:2348,50273,889,89742,682,00002,273,280
7May 5, 2024 16:2348,52068,972,25641,682,0001,016,0002,273,280
8May 5, 2024 16:2348,53876,348,91542,713,00002,273,280
9May 5, 2024 16:2348,54266,336,23241,700,0001,017,0002,289,664
10May 5, 2024 16:2348,57866,542,80742,749,00002,289,664
11May 5, 2024 16:2348,68371,649,67440,849,0001,992,0002,269,184
12May 5, 2024 16:2348,73674,211,59340,894,0001,994,0002,273,280