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 20, 2024 20:04Ivan BessonovIvan BessonovScore: 15,950Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 20, 2024 20:0415,35133,003,88912,470,0001,039,0002,289,664
2May 20, 2024 20:0415,36029,854,31412,478,0001,039,0002,289,664
3May 20, 2024 20:0415,36531,247,20513,521,00002,289,664
4May 20, 2024 20:0415,38931,249,23613,542,00002,342,912
5May 20, 2024 20:0415,41932,859,30012,526,0001,043,0002,338,816
6May 20, 2024 20:0415,41930,256,44512,526,0001,043,0002,457,600
7May 20, 2024 20:0415,95068,119,05114,036,36502,326,528
8May 20, 2024 20:0416,02735,737,91113,097,0001,007,0002,347,008
9May 20, 2024 20:0416,06630,416,49712,119,0002,019,0002,289,664
10May 20, 2024 20:0416,07438,286,05213,135,0001,010,0002,424,832
11May 20, 2024 20:0416,12766,708,24614,192,08802,191,360
12May 20, 2024 20:0416,20885,225,90714,263,21002,191,360