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:23Ivan BessonovIvan BessonovScore: 19,976Success
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:2319,91942,891,08916,498,0001,031,0002,322,432
2May 18, 2024 11:2319,94841,119,45717,554,00002,330,624
3May 18, 2024 11:2319,95038,632,29916,524,0001,032,0002,428,928
4May 18, 2024 11:2319,96535,039,21516,536,0001,033,0002,289,664
5May 18, 2024 11:2319,96538,731,76316,536,0001,033,0002,330,624
6May 18, 2024 11:2319,96633,233,70516,537,0001,033,0002,330,624
7May 18, 2024 11:2319,97640,374,38716,545,0001,034,0002,289,664
8May 18, 2024 11:2320,95641,093,60316,392,0002,049,0002,334,720
9May 18, 2024 11:2320,96640,455,04717,425,0001,025,0002,289,664
10May 18, 2024 11:2321,52497,566,61618,940,70002,195,456
11May 18, 2024 11:2321,59090,575,53318,998,83002,306,048
12May 18, 2024 11:2322,610103,768,82719,897,01202,318,336