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 16, 2024 18:56Ivan BessonovIvan BessonovScore: 31,324Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 16, 2024 18:5628,21089,532,01824,824,93302,269,184
2May 16, 2024 18:5628,22897,692,24024,840,97502,252,800
3May 16, 2024 18:5628,25398,444,08424,862,91502,260,992
4May 16, 2024 18:5631,30951,971,56826,532,0001,020,0002,289,664
5May 16, 2024 18:5631,31548,320,48526,537,0001,020,0002,289,664
6May 16, 2024 18:5631,31762,657,50826,539,0001,020,0002,289,664
7May 16, 2024 18:5631,32452,194,95627,565,00002,289,664
8May 16, 2024 18:5631,33851,550,59226,556,0001,021,0002,293,760
9May 16, 2024 18:5631,35249,483,99926,569,0001,021,0002,289,664
10May 16, 2024 18:5631,36548,673,73027,601,00002,269,184
11May 16, 2024 18:5631,39949,897,75226,608,0001,023,0002,289,664
12May 16, 2024 18:5631,42451,225,91326,629,0001,024,0002,289,664