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 21, 2024 14:03Ivan BessonovIvan BessonovScore: 15,523Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 21, 2024 14:0415,15930,273,72911,288,0002,052,0002,351,104
2May 21, 2024 14:0415,21031,238,43413,385,00002,289,664
3May 21, 2024 14:0515,22231,011,55612,365,0001,030,0002,289,664
4May 21, 2024 14:0515,22430,666,68612,367,0001,030,0002,289,664
5May 21, 2024 14:0415,24334,401,42012,383,0001,031,0002,289,664
6May 21, 2024 14:0415,24340,392,72512,383,0001,031,0002,342,912
7May 21, 2024 14:0315,26330,162,45812,398,0001,033,0002,342,912
8May 21, 2024 14:0415,26730,244,64212,402,0001,033,0002,347,008
9May 21, 2024 14:0515,28331,191,56513,449,00002,289,664
10May 21, 2024 14:0315,29034,865,50712,420,0001,035,0002,342,912
11May 21, 2024 14:0315,31029,622,04613,473,00002,289,664
12May 21, 2024 14:0315,31141,212,30312,438,0001,036,0002,347,008
13May 21, 2024 14:0515,33932,792,91712,460,0001,038,0002,289,664
14May 21, 2024 14:0515,37532,041,77112,490,0001,040,0002,338,816
15May 21, 2024 14:0415,40836,190,28911,622,0001,937,0002,289,664
16May 21, 2024 14:0415,443109,078,84613,590,13002,203,648
17May 21, 2024 14:0315,48684,587,79913,627,78502,199,552
18May 21, 2024 14:0515,51797,964,48813,654,94902,199,552
19May 21, 2024 14:0415,52379,450,29013,660,01302,203,648
20May 21, 2024 14:0515,54286,455,24513,676,71002,183,168
21May 21, 2024 14:0415,54277,993,76613,676,64802,199,552
22May 21, 2024 14:0315,60658,842,28413,732,99102,199,552
23May 21, 2024 14:0515,61294,852,48213,738,92302,199,552
24May 21, 2024 14:0515,65930,925,39012,720,0001,060,0002,351,104
25May 21, 2024 14:0315,69841,968,55912,752,0001,062,0002,289,664
26May 21, 2024 14:0315,79429,775,39512,907,000992,0002,351,104
27May 21, 2024 14:0315,80631,431,12711,922,0001,987,0002,342,912
28May 21, 2024 14:0315,83131,386,33311,941,0001,990,0002,289,664
29May 21, 2024 14:0515,83231,036,48011,942,0001,990,0002,289,664
30May 21, 2024 14:0415,85832,233,57011,962,0001,993,0002,355,200
31May 21, 2024 14:0515,89343,170,29411,988,0001,998,0002,289,664
32May 21, 2024 14:0515,91135,121,49112,002,0002,000,0002,289,664
33May 21, 2024 14:0415,91337,797,02112,003,0002,000,0002,355,200
34May 21, 2024 14:0415,96338,429,92012,041,0002,006,0002,289,664
35May 21, 2024 14:0315,96929,065,66012,046,0002,007,0002,285,568
36May 21, 2024 14:0316,04688,297,39214,120,68302,203,648