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 06:11apuxbtapuxbtError
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 06:1100000Error: expected "51357776247702 ", got "51357776247631 "
2Dec 1, 2022 06:1131,61988,080,32427,824,94602,236,416
3Dec 1, 2022 06:1131,744103,743,86327,934,81602,232,320
4Dec 1, 2022 06:1131,80599,199,41127,988,46302,240,512
5Dec 1, 2022 06:1132,07558,828,86926,210,0002,016,0002,392,064
6Dec 1, 2022 06:1132,18955,204,02427,315,0001,011,0002,379,776
7Dec 1, 2022 06:1132,19449,702,04728,331,00002,523,136
8Dec 1, 2022 06:1132,19953,087,28328,335,00002,383,872
9Dec 1, 2022 06:1132,25851,967,07728,387,00002,265,088
10Dec 1, 2022 06:1132,31949,383,34927,426,0001,015,0002,387,968
11Dec 1, 2022 06:1132,33655,023,97727,440,0001,016,0002,392,064
12Dec 1, 2022 06:1132,34354,792,79027,446,0001,016,0002,387,968
13Dec 1, 2022 06:1132,42850,333,63327,518,0001,019,0002,383,872