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 27, 2022 12:16Robert BurkeRobert BurkeScore: 36,422Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 27, 2022 12:1634,78691,187,67030,611,73802,220,032
2Dec 27, 2022 12:1634,80580,830,52030,628,75602,224,128
3Dec 27, 2022 12:1634,932104,711,07130,739,99202,232,320
4Dec 27, 2022 12:1636,25955,100,45531,908,00002,494,464
5Dec 27, 2022 12:1636,29550,833,29630,942,000998,0002,273,280
6Dec 27, 2022 12:1636,30155,216,17629,949,0001,996,0002,392,064
7Dec 27, 2022 12:1636,42253,066,47031,050,0001,001,0002,265,088
8Dec 27, 2022 12:1636,42360,625,60431,051,0001,001,0002,400,256
9Dec 27, 2022 12:1636,49453,720,33130,108,0002,007,0002,400,256
10Dec 27, 2022 12:1636,58054,085,27930,179,0002,011,0002,273,280
11Dec 27, 2022 12:1636,61856,725,46430,210,0002,014,0002,273,280
12Dec 27, 2022 12:1636,71552,399,42630,290,0002,019,0002,486,272