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 12:53Robert BurkeRobert BurkeScore: 21,682Success
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:5317,16664,754,47915,105,95802,256,896
2Feb 15, 2024 12:5317,19282,319,17815,128,54202,265,088
3Feb 15, 2024 12:5317,19966,501,61715,134,79902,256,896
4Feb 15, 2024 12:5317,21192,514,07715,145,32202,265,088
5Feb 15, 2024 12:5317,21565,976,86315,149,58402,265,088
6Feb 15, 2024 12:5317,32459,007,11015,245,53402,256,896
7Feb 15, 2024 12:5321,60739,232,63417,013,0002,001,0002,281,472
8Feb 15, 2024 12:5321,62245,717,86317,025,0002,002,0002,420,736
9Feb 15, 2024 12:5321,63837,781,72317,037,0002,004,0002,408,448
10Feb 15, 2024 12:5321,66644,199,46818,063,0001,003,0002,281,472
11Feb 15, 2024 12:5321,66642,571,13917,059,0002,007,0002,420,736
12Feb 15, 2024 12:5321,66937,509,28318,066,0001,003,0002,408,448
13Feb 15, 2024 12:5321,68236,838,32417,072,0002,008,0002,416,640
14Feb 15, 2024 12:5321,68845,521,74818,081,0001,004,0002,281,472
15Feb 15, 2024 12:5321,69132,993,08118,084,0001,004,0002,416,640
16Feb 15, 2024 12:5321,70042,966,89917,086,0002,010,0002,412,544
17Feb 15, 2024 12:5321,70744,948,64717,092,0002,010,0002,420,736
18Feb 15, 2024 12:5321,71842,805,25017,101,0002,011,0002,281,472
19Feb 15, 2024 12:5321,72242,082,81617,103,0002,012,0002,514,944
20Feb 15, 2024 12:5321,72743,197,80217,108,0002,012,0002,281,472
21Feb 15, 2024 12:5321,74938,669,74617,125,0002,014,0002,281,472
22Feb 15, 2024 12:5321,77643,456,33317,146,0002,017,0002,281,472
23Feb 15, 2024 12:5321,78946,538,89217,156,0002,018,0002,412,544
24Feb 15, 2024 12:5321,79244,896,83617,159,0002,018,0002,412,544