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 04:57Robert BurkeRobert BurkeScore: 22,114Success
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 04:5718,22183,024,30316,034,65602,232,320
2Dec 28, 2022 05:0118,31386,176,81916,115,78802,228,224
3Dec 28, 2022 04:5718,32977,568,24016,129,88602,228,224
4Dec 28, 2022 05:0118,39474,653,53216,186,86702,228,224
5Dec 28, 2022 04:5718,43861,075,62916,225,69802,224,128
6Dec 28, 2022 05:0118,44072,288,53616,227,39402,220,032
7Dec 28, 2022 04:5722,00740,880,55319,366,00002,396,160
8Dec 28, 2022 04:5722,03040,395,14818,366,0001,020,0002,392,064
9Dec 28, 2022 05:0122,06439,176,85119,416,00002,400,256
10Dec 28, 2022 05:0122,07732,472,92918,406,0001,022,0002,535,424
11Dec 28, 2022 05:0122,09943,651,82618,424,0001,023,0002,400,256
12Dec 28, 2022 04:5722,10040,889,81318,425,0001,023,0002,392,064
13Dec 28, 2022 04:5722,11439,656,48819,460,00002,392,064
14Dec 28, 2022 05:0122,11640,104,84419,462,00002,490,368
15Dec 28, 2022 04:5722,12245,830,01119,467,00002,392,064
16Dec 28, 2022 05:0122,12249,601,41619,467,00002,392,064
17Dec 28, 2022 05:0122,13646,191,93418,455,0001,025,0002,396,160
18Dec 28, 2022 05:0122,17450,015,49217,459,0002,054,0002,535,424
19Dec 28, 2022 04:5722,18233,940,12118,493,0001,027,0002,387,968
20Dec 28, 2022 04:5722,18950,427,34118,499,0001,027,0002,273,280
21Dec 28, 2022 04:5722,19743,928,51117,477,0002,056,0002,273,280
22Dec 28, 2022 05:0122,19841,066,06819,534,00002,273,280
23Dec 28, 2022 05:0122,20145,482,86619,537,00002,387,968
24Dec 28, 2022 04:5722,22741,992,78319,560,00002,535,424