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 19, 2024 07:06Ivan BessonovIvan BessonovScore: 16,839Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 19, 2024 07:0616,40032,880,81314,432,00002,289,664
2May 19, 2024 07:0616,42033,372,00013,418,0001,032,0002,330,624
3May 19, 2024 07:0516,46530,280,62314,489,00002,289,664
4May 19, 2024 07:0516,46730,955,04513,456,0001,035,0002,338,816
5May 19, 2024 07:0516,48235,362,52213,468,0001,036,0002,289,664
6May 19, 2024 07:0516,48636,508,61513,472,0001,036,0002,289,664
7May 19, 2024 07:0616,49029,931,42113,475,0001,036,0002,330,624
8May 19, 2024 07:0516,49438,821,14213,479,0001,036,0002,285,568
9May 19, 2024 07:0516,51131,440,69513,493,0001,037,0002,326,528
10May 19, 2024 07:0616,51833,167,40213,498,0001,038,0002,289,664
11May 19, 2024 07:0616,51931,802,85414,537,00002,289,664
12May 19, 2024 07:0516,52535,771,73813,504,0001,038,0002,334,720
13May 19, 2024 07:0616,83993,405,11914,818,20502,179,072
14May 19, 2024 07:0516,94332,698,24513,916,000994,0002,289,664
15May 19, 2024 07:0616,99937,011,13212,965,0001,994,0002,289,664
16May 19, 2024 07:0617,09232,117,59213,036,0002,005,0002,338,816
17May 19, 2024 07:0617,11836,465,20614,060,0001,004,0002,289,664
18May 19, 2024 07:0517,17232,685,19713,097,0002,014,0002,330,624
19May 19, 2024 07:0617,20146,581,62415,137,00002,334,720
20May 19, 2024 07:0517,41572,855,51115,325,32702,187,264
21May 19, 2024 07:0617,45799,392,65715,362,30302,187,264
22May 19, 2024 07:0617,54984,213,72315,443,42402,203,648
23May 19, 2024 07:0517,55872,970,86215,451,13002,195,456
24May 19, 2024 07:0517,58397,505,51115,472,75002,187,264