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 listOct 4, 2023 11:21Robert BurkeRobert BurkeScore: 22,059Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 4, 2023 11:2118,32072,047,70816,121,74302,228,224
2Oct 4, 2023 10:4818,32886,439,82416,128,34402,224,128
3Oct 4, 2023 11:2118,40882,601,83716,198,73602,228,224
4Oct 4, 2023 10:4818,42167,073,05016,210,75102,240,512
5Oct 4, 2023 10:4818,43777,718,77716,224,63102,232,320
6Oct 4, 2023 11:2118,43968,209,52016,226,16502,232,320
7Oct 4, 2023 11:2122,00539,152,64218,345,0001,019,0002,396,160
8Oct 4, 2023 11:2122,01040,862,39618,350,0001,019,0002,396,160
9Oct 4, 2023 10:4822,01841,635,53619,376,00002,392,064
10Oct 4, 2023 10:4822,04744,342,63518,380,0001,021,0002,396,160
11Oct 4, 2023 11:2122,05146,876,86619,405,00002,383,872
12Oct 4, 2023 11:2122,05647,539,63318,388,0001,021,0002,392,064
13Oct 4, 2023 10:4822,05947,385,07919,412,00002,273,280
14Oct 4, 2023 10:4822,09238,351,83318,418,0001,023,0002,273,280
15Oct 4, 2023 10:4822,10138,392,72619,449,00002,273,280
16Oct 4, 2023 11:2122,12450,272,39218,445,0001,024,0002,273,280
17Oct 4, 2023 11:2122,12534,770,59519,470,00002,273,280
18Oct 4, 2023 10:4822,17635,117,34318,488,0001,027,0002,400,256
19Oct 4, 2023 10:4822,17746,962,10018,489,0001,027,0002,535,424
20Oct 4, 2023 11:2122,19735,963,62518,505,0001,028,0002,396,160
21Oct 4, 2023 10:4822,21749,269,67617,493,0002,058,0002,273,280
22Oct 4, 2023 11:2122,22740,903,43919,560,00002,387,968
23Oct 4, 2023 10:4822,24339,270,26218,544,0001,030,0002,400,256
24Oct 4, 2023 11:2122,24542,596,81618,546,0001,030,0002,396,160