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 listFeb 15, 2024 13:08Robert BurkeRobert BurkeScore: 21,499Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 15, 2024 13:0817,05388,099,22015,006,82602,265,088
2Feb 15, 2024 13:0817,08184,860,76915,031,39302,256,896
3Feb 16, 2024 01:3117,11358,698,34915,059,16602,256,896
4Feb 16, 2024 01:2917,12762,744,96415,071,62202,260,992
5Feb 16, 2024 01:3117,13079,969,44915,074,69402,248,704
6Feb 16, 2024 01:2917,13855,379,85115,081,08802,260,992
7Feb 16, 2024 01:2917,14161,528,86915,084,08002,256,896
8Feb 16, 2024 01:3117,15252,850,58115,093,34402,252,800
9Feb 15, 2024 13:0817,18998,260,60415,126,38502,265,088
10Feb 16, 2024 01:2921,33341,299,33818,773,00002,420,736
11Feb 16, 2024 01:3121,36038,403,09717,753,0001,044,0002,281,472
12Feb 15, 2024 13:0821,36142,328,29518,798,00002,281,472
13Feb 16, 2024 01:2921,46546,840,72816,901,0001,988,0002,416,640
14Feb 16, 2024 01:2921,48645,126,96016,918,0001,990,0002,416,640
15Feb 16, 2024 01:3121,48643,854,78816,918,0001,990,0002,281,472
16Feb 15, 2024 13:0821,48958,441,03517,915,000995,0002,412,544
17Feb 16, 2024 01:3121,49445,546,01516,924,0001,991,0002,281,472
18Feb 16, 2024 01:2921,49944,382,21017,924,000995,0002,416,640
19Feb 15, 2024 13:0821,49948,539,84917,924,000995,0002,281,472
20Feb 16, 2024 01:3121,51544,396,06416,940,0001,993,0002,408,448
21Feb 16, 2024 01:3121,51647,127,31717,938,000996,0002,281,472
22Feb 16, 2024 01:3121,51738,405,88616,942,0001,993,0002,277,376
23Feb 16, 2024 01:2921,53030,907,59917,949,000997,0002,281,472
24Feb 16, 2024 01:3121,53136,794,33616,953,0001,994,0002,281,472
25Feb 15, 2024 13:0821,54940,245,86316,967,0001,996,0002,416,640
26Feb 15, 2024 13:0821,55337,795,33616,971,0001,996,0002,424,832
27Feb 16, 2024 01:2921,55547,457,05416,972,0001,996,0002,281,472
28Feb 16, 2024 01:3121,55949,190,61516,975,0001,997,0002,281,472
29Feb 16, 2024 01:2921,56932,279,46516,983,0001,998,0002,281,472
30Feb 16, 2024 01:3121,57039,562,21317,983,000999,0002,281,472
31Feb 15, 2024 13:0821,57340,306,26016,986,0001,998,0002,416,640
32Feb 15, 2024 13:0821,57438,759,79116,987,0001,998,0002,510,848
33Feb 15, 2024 13:0821,57435,374,13116,987,0001,998,0002,281,472
34Feb 15, 2024 13:0821,58141,930,54716,992,0001,999,0002,416,640
35Feb 16, 2024 01:2921,59332,785,67617,002,0002,000,0002,277,376
36Feb 16, 2024 01:2921,63640,571,44217,036,0002,004,0002,416,640