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 16, 2024 01:29Robert BurkeRobert BurkeScore: 23,704Success
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:1217,03980,569,05214,994,17302,265,088
2Feb 15, 2024 13:1217,20463,105,86615,139,41402,252,800
3Feb 15, 2024 13:1217,27583,197,15115,202,32602,256,896
4Feb 15, 2024 13:1217,57436,845,72214,434,0001,031,0002,416,640
5Feb 15, 2024 13:1217,59134,267,92514,448,0001,032,0002,420,736
6Feb 15, 2024 13:1217,60639,190,53314,461,0001,032,0002,281,472
7Feb 15, 2024 13:1217,60840,535,00514,462,0001,033,0002,412,544
8Feb 15, 2024 13:1217,61330,256,50814,466,0001,033,0002,281,472
9Feb 15, 2024 13:1217,63242,725,10314,482,0001,034,0002,281,472
10Feb 15, 2024 13:1217,63638,956,90914,486,0001,034,0002,416,640
11Feb 15, 2024 13:1217,75344,793,57914,582,0001,041,0002,281,472
12Feb 15, 2024 13:1217,84940,356,10115,707,00002,281,472
13Feb 16, 2024 01:2923,70487,211,75520,859,69602,265,088
14Feb 16, 2024 01:2923,752102,963,49020,902,13202,256,896
15Feb 16, 2024 01:2923,81367,825,90120,955,48402,269,184
16Feb 16, 2024 01:2924,37244,116,04821,447,00002,416,640
17Feb 16, 2024 01:2924,41440,027,23020,461,0001,023,0002,281,472
18Feb 16, 2024 01:2924,43341,989,96020,478,0001,023,0002,408,448
19Feb 16, 2024 01:2924,46144,231,17720,501,0001,025,0002,416,640
20Feb 16, 2024 01:2924,47641,807,46921,539,00002,412,544
21Feb 16, 2024 01:2924,48250,496,86721,544,00002,281,472
22Feb 16, 2024 01:2924,50142,059,08620,535,0001,026,0002,416,640
23Feb 16, 2024 01:2924,54545,921,26320,572,0001,028,0002,510,848
24Feb 16, 2024 01:2924,55142,771,94220,577,0001,028,0002,281,472