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 18, 2024 11:39Ivan BessonovIvan BessonovScore: 20,659Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 18, 2024 11:3919,83940,707,85917,458,00002,289,664
2May 18, 2024 11:3919,85546,731,05816,445,0001,027,0002,289,664
3May 18, 2024 11:3919,90538,201,26016,486,0001,030,0002,289,664
4May 18, 2024 11:3919,90945,469,44716,490,0001,030,0002,289,664
5May 18, 2024 11:3920,34544,892,74616,910,000994,0002,445,312
6May 18, 2024 11:3920,53141,347,78016,060,0002,007,0002,437,120
7May 18, 2024 11:3920,65945,195,69816,160,0002,020,0002,289,664
8May 18, 2024 11:3920,66039,906,51916,161,0002,020,0002,437,120
9May 18, 2024 11:3920,71546,181,36316,204,0002,025,0002,289,664
10May 18, 2024 11:3921,43494,394,52418,861,80002,293,760
11May 18, 2024 11:3921,45885,768,83118,883,23602,256,896
12May 18, 2024 11:3921,461117,379,78018,885,99902,293,760