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 21:01Ivan BessonovIvan BessonovScore: 30,676Success
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 21:0127,76282,670,27324,430,97902,260,992
2May 16, 2024 21:0127,77690,650,08324,443,06002,260,992
3May 16, 2024 21:0127,87590,143,99524,529,69802,260,992
4May 16, 2024 21:0130,61148,261,03724,943,0001,995,0002,392,064
5May 16, 2024 21:0130,64851,329,50725,972,000998,0002,289,664
6May 16, 2024 21:0130,65849,351,34124,981,0001,998,0002,289,664
7May 16, 2024 21:0130,67652,899,05925,996,000999,0002,289,664
8May 16, 2024 21:0130,68449,377,24925,002,0002,000,0002,289,664
9May 16, 2024 21:0130,76356,270,42725,066,0002,005,0002,273,280
10May 16, 2024 21:0130,80053,517,91125,097,0002,007,0002,289,664
11May 16, 2024 21:0130,80150,675,76025,098,0002,007,0002,289,664
12May 16, 2024 21:0130,81852,198,16226,116,0001,004,0002,269,184