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 29, 2022 02:49Yuriy LyfenkoYuriy LyfenkoError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 29, 2022 02:4600000Error: expected "51305826940450 ", got "51305826940227 "stderr
2Dec 29, 2022 02:4928,47549,995,94824,056,0001,002,0002,265,088
3Dec 29, 2022 02:4928,48253,042,95423,059,0002,005,0002,387,968
4Dec 29, 2022 02:4928,51052,751,92124,086,0001,003,0002,527,232
5Dec 29, 2022 02:4928,55255,833,60723,116,0002,010,0002,265,088
6Dec 29, 2022 02:4928,57352,995,69424,139,0001,005,0002,265,088
7Dec 29, 2022 02:4928,60550,479,57724,166,0001,006,0002,392,064
8Dec 29, 2022 02:4928,71452,748,39024,258,0001,010,0002,265,088
9Dec 29, 2022 02:4928,79248,611,10425,337,00002,392,064
10Dec 29, 2022 02:4729,03191,922,66525,547,29302,240,512
11Dec 29, 2022 02:4929,05347,808,13324,545,0001,022,0002,527,232
12Dec 29, 2022 02:4729,13298,894,61525,635,94002,224,128
13Dec 29, 2022 02:4729,13285,515,89625,636,02002,240,512
14Dec 29, 2022 02:4929,18199,533,90625,678,87202,232,320
15Dec 29, 2022 02:4929,341130,564,02525,820,31102,228,224
16Dec 29, 2022 02:4929,37685,628,18225,851,27502,232,320