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 listOct 6, 2023 13:42apuxbtapuxbtScore: 24,951Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 7, 2023 22:4324,86647,670,00319,893,0001,989,0002,396,160
2Oct 6, 2023 13:4224,88052,832,27117,914,0003,980,0002,273,280
3Oct 6, 2023 13:4224,88151,044,23218,910,0002,985,0002,293,760
4Oct 7, 2023 22:4324,88352,877,34017,916,0003,981,0002,297,856
5Oct 7, 2023 22:4324,88850,080,03218,915,0002,986,0002,297,856
6Oct 6, 2023 13:4224,89043,440,18420,860,0001,043,0002,281,472
7Oct 7, 2023 22:4324,89452,989,52420,912,000995,0002,527,232
8Oct 6, 2023 13:4224,89455,541,10719,916,0001,991,0002,367,488
9Oct 7, 2023 22:4324,89748,027,56319,918,0001,991,0002,301,952
10Oct 6, 2023 13:4224,90747,478,04618,930,0002,988,0002,502,656
11Oct 7, 2023 22:4324,91444,444,69919,931,0001,993,0002,396,160
12Oct 6, 2023 13:4224,92746,267,23520,939,000997,0002,306,048
13Oct 7, 2023 22:4324,95145,404,44918,963,0002,994,0002,392,064
14Oct 6, 2023 13:4224,99844,352,60719,999,0001,999,0002,285,568
15Oct 7, 2023 22:4325,01044,756,95720,009,0002,000,0002,293,760
16Oct 6, 2023 13:4225,05590,935,58122,048,07302,281,472
17Oct 7, 2023 22:4325,09964,292,39822,087,22002,265,088
18Oct 6, 2023 13:4225,13987,415,88322,122,07402,260,992
19Oct 7, 2023 22:4325,28349,173,93818,204,0004,045,0002,285,568
20Oct 6, 2023 13:4225,40846,532,72018,294,0004,065,0002,285,568
21Oct 6, 2023 13:4225,43877,435,91922,385,08702,260,992
22Oct 7, 2023 22:4325,44594,471,09022,391,67302,265,088
23Oct 6, 2023 13:4225,49844,789,41319,379,0003,059,0002,297,856
24Oct 7, 2023 22:4325,55492,087,77222,487,40802,256,896