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 17:28Ivan BessonovIvan BessonovScore: 17,588Success
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 17:2917,46533,120,15014,345,0001,024,0002,289,664
2May 18, 2024 17:2917,47541,243,55615,378,00002,306,048
3May 18, 2024 17:2817,53430,891,12914,402,0001,028,0002,297,856
4May 18, 2024 17:2917,53531,626,49214,403,0001,028,0002,285,568
5May 18, 2024 17:2917,53643,022,19415,432,00002,297,856
6May 18, 2024 17:2917,54839,618,72314,413,0001,029,0002,297,856
7May 18, 2024 17:2917,55741,563,80114,420,0001,030,0002,289,664
8May 18, 2024 17:2817,55743,767,62314,420,0001,030,0002,400,256
9May 18, 2024 17:2817,56035,465,23114,423,0001,030,0002,289,664
10May 18, 2024 17:2817,56539,989,35914,427,0001,030,0002,306,048
11May 18, 2024 17:2817,57630,285,25214,436,0001,031,0002,301,952
12May 18, 2024 17:2817,57748,333,80714,437,0001,031,0002,306,048
13May 18, 2024 17:2917,58831,274,50615,477,00002,289,664
14May 18, 2024 17:2817,59343,640,48814,450,0001,032,0002,301,952
15May 18, 2024 17:2817,61332,573,88614,466,0001,033,0002,289,664
16May 18, 2024 17:2817,62632,889,67814,477,0001,034,0002,408,448
17May 18, 2024 17:2818,40879,898,45416,199,34102,293,760
18May 18, 2024 17:2918,57529,637,32314,303,0002,043,0002,293,760
19May 18, 2024 17:2918,57837,260,40414,306,0002,043,0002,289,664
20May 18, 2024 17:2918,80895,285,75616,550,62602,252,800
21May 18, 2024 17:2919,18189,752,08116,879,50002,285,568
22May 18, 2024 17:2819,21073,995,60516,905,07602,285,568
23May 18, 2024 17:2819,27185,344,24516,958,34702,293,760
24May 18, 2024 17:2919,44091,388,68617,107,61502,297,856