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 19:00Ivan BessonovIvan BessonovScore: 17,213Success
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 19:0017,05839,197,25014,011,0001,000,0002,289,664
2May 18, 2024 19:1217,08031,657,56913,026,0002,004,0002,297,856
3May 18, 2024 19:1217,08235,934,24613,028,0002,004,0002,301,952
4May 18, 2024 19:1217,08535,296,82413,031,0002,004,0002,285,568
5May 18, 2024 19:1217,09130,731,42113,035,0002,005,0002,289,664
6May 18, 2024 19:1217,09330,005,31913,037,0002,005,0002,301,952
7May 18, 2024 19:0017,09936,351,20613,041,0002,006,0002,301,952
8May 18, 2024 19:0017,10932,229,04513,049,0002,007,0002,306,048
9May 18, 2024 19:1217,11536,574,97513,053,0002,008,0002,301,952
10May 18, 2024 19:0017,11931,027,65913,057,0002,008,0002,297,856
11May 18, 2024 19:1217,18931,544,19713,110,0002,016,0002,289,664
12May 18, 2024 19:0017,20832,570,79913,124,0002,019,0002,289,664
13May 18, 2024 19:0017,21331,140,94513,128,0002,019,0002,289,664
14May 18, 2024 19:1217,29936,355,56413,194,0002,029,0002,375,680
15May 18, 2024 19:0017,30071,107,19515,223,70702,277,376
16May 18, 2024 19:0017,32259,551,25415,243,01302,252,800
17May 18, 2024 19:1217,33580,524,07715,254,78702,285,568
18May 18, 2024 19:0017,40060,021,68315,312,39702,281,472
19May 18, 2024 19:1217,85532,577,49114,665,0001,047,0002,289,664
20May 18, 2024 19:1217,91961,759,51715,769,05402,281,472
21May 18, 2024 19:0018,07431,198,09413,917,0001,988,0002,289,664
22May 18, 2024 19:0018,08839,260,12413,928,0001,989,0002,293,760
23May 18, 2024 19:0018,18638,473,82214,004,0002,000,0002,289,664
24May 18, 2024 19:1218,25180,606,23516,061,02002,281,472