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 listDec 28, 2022 03:04Robert BurkeRobert BurkeScore: 19,200Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 28, 2022 03:0418,54670,756,32316,320,90802,252,800
2Dec 28, 2022 02:4818,56977,177,54716,340,32002,228,224
3Dec 28, 2022 02:4818,60981,879,22516,375,60402,232,320
4Dec 28, 2022 02:4818,61374,120,51116,379,85302,224,128
5Dec 28, 2022 03:0418,65072,104,94316,412,07702,232,320
6Dec 28, 2022 03:0418,74378,235,49316,493,69502,236,416
7Dec 28, 2022 02:4818,97246,710,01215,652,0001,043,0002,396,160
8Dec 28, 2022 02:4819,03345,574,40016,749,00002,514,944
9Dec 28, 2022 03:0419,07045,750,38915,734,0001,048,0002,383,872
10Dec 28, 2022 03:0419,16033,195,53113,886,0002,975,0002,453,504
11Dec 28, 2022 02:4819,17742,969,62114,891,0001,985,0002,273,280
12Dec 28, 2022 03:0419,19836,066,41214,907,0001,987,0002,392,064
13Dec 28, 2022 02:4819,20043,139,63015,903,000993,0002,535,424
14Dec 28, 2022 03:0419,20940,543,76213,921,0002,983,0002,486,272
15Dec 28, 2022 02:4819,21040,618,44015,911,000994,0002,514,944
16Dec 28, 2022 03:0419,21341,328,93615,913,000994,0002,486,272
17Dec 28, 2022 03:0419,21532,367,83114,920,0001,989,0002,273,280
18Dec 28, 2022 02:4819,21742,653,49915,917,000994,0002,387,968
19Dec 28, 2022 03:0419,22233,626,58816,915,00002,387,968
20Dec 28, 2022 03:0419,22345,261,95015,921,000995,0002,273,280
21Dec 28, 2022 02:4819,22747,813,17914,930,0001,990,0002,273,280
22Dec 28, 2022 02:4819,23137,962,33815,928,000995,0002,400,256
23Dec 28, 2022 02:4819,27341,974,96914,965,0001,995,0002,273,280
24Dec 28, 2022 03:0419,29049,343,34915,977,000998,0002,396,160