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:03Robert BurkeRobert BurkeScore: 21,636Success
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 12:5717,13064,174,61615,074,41002,260,992
2Feb 15, 2024 12:5717,13394,108,23015,076,73902,260,992
3Feb 15, 2024 12:5717,23873,030,74015,169,74702,260,992
4Feb 15, 2024 13:0317,24884,050,15215,178,20902,265,088
5Feb 15, 2024 13:0317,25877,527,05415,187,23502,256,896
6Feb 15, 2024 13:0317,32459,810,75715,245,37602,260,992
7Feb 15, 2024 13:0321,54343,184,36316,963,0001,995,0002,281,472
8Feb 15, 2024 13:0321,55940,264,72216,975,0001,997,0002,281,472
9Feb 15, 2024 12:5721,58532,234,93016,996,0001,999,0002,420,736
10Feb 15, 2024 12:5721,59941,902,69417,007,0002,000,0002,281,472
11Feb 15, 2024 13:0321,63639,286,20817,036,0002,004,0002,506,752
12Feb 15, 2024 13:0321,63648,570,73917,036,0002,004,0002,412,544
13Feb 15, 2024 12:5721,63650,511,28217,036,0002,004,0002,281,472
14Feb 15, 2024 12:5721,65940,608,85517,054,0002,006,0002,281,472
15Feb 15, 2024 12:5721,66538,660,44618,062,0001,003,0002,408,448
16Feb 15, 2024 12:5721,68442,495,89117,074,0002,008,0002,416,640
17Feb 15, 2024 12:5721,69139,584,67117,079,0002,009,0002,408,448
18Feb 15, 2024 12:5721,70341,933,26817,089,0002,010,0002,277,376
19Feb 15, 2024 13:0321,70747,293,99417,092,0002,010,0002,281,472
20Feb 15, 2024 13:0321,72831,603,69917,109,0002,012,0002,420,736
21Feb 15, 2024 13:0321,73843,391,84917,116,0002,013,0002,281,472
22Feb 15, 2024 13:0321,79040,696,14018,166,0001,009,0002,281,472
23Feb 15, 2024 13:0321,83451,268,98917,192,0002,022,0002,281,472
24Feb 15, 2024 12:5721,89445,387,66316,225,0003,042,0002,281,472