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:55Robert BurkeRobert BurkeScore: 20,190Success
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:5519,48882,959,63917,149,31902,236,416
2Dec 28, 2022 04:5519,49580,118,97117,155,46102,228,224
3Dec 28, 2022 04:5519,49969,021,78717,159,49702,228,224
4Dec 28, 2022 04:5520,09944,209,64017,687,00002,387,968
5Dec 28, 2022 04:5520,15732,822,68316,695,0001,043,0002,400,256
6Dec 28, 2022 04:5520,16348,338,96417,743,00002,273,280
7Dec 28, 2022 04:5520,19046,907,41416,722,0001,045,0002,490,368
8Dec 28, 2022 04:5520,19241,233,41517,769,00002,392,064
9Dec 28, 2022 04:5520,20942,703,11916,738,0001,046,0002,535,424
10Dec 28, 2022 04:5520,34342,445,21714,919,0002,983,0002,461,696
11Dec 28, 2022 04:5520,34441,619,19815,914,0001,989,0002,473,984
12Dec 28, 2022 04:5520,37533,616,22214,942,0002,988,0002,396,160