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 1, 2022 16:57apuxbtapuxbtError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 1, 2022 07:3800000Error: expected "51368747112346 ", got "51368747111973 "
2Dec 1, 2022 16:5730,97855,365,24026,252,0001,009,0002,387,968
3Dec 1, 2022 16:5730,99854,748,09626,268,0001,010,0002,383,872
4Dec 1, 2022 16:5731,02554,714,77526,291,0001,011,0002,387,968
5Dec 1, 2022 16:5731,05354,233,95727,327,00002,379,776
6Dec 1, 2022 16:5731,12651,630,17426,377,0001,014,0002,383,872
7Dec 1, 2022 16:5731,12654,470,24626,377,0001,014,0002,383,872
8Dec 1, 2022 16:5731,15654,566,09127,417,00002,383,872
9Dec 1, 2022 16:5731,18449,541,23626,426,0001,016,0002,265,088
10Dec 1, 2022 16:5731,282102,477,32027,528,12602,236,416
11Dec 1, 2022 16:5731,336117,242,27827,575,77602,244,608
12Dec 1, 2022 16:5731,41654,026,03627,646,00002,396,160
13Dec 1, 2022 16:5731,65695,181,77727,857,05502,240,512