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:54Yuriy 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:5300000Error: expected "51335732216566 ", got "51335732216549 "stderr
2Dec 29, 2022 02:5428,14154,523,85824,764,00002,396,160
3Dec 29, 2022 02:5428,28856,049,28923,898,000995,0002,269,184
4Dec 29, 2022 02:5428,29249,420,82822,906,0001,991,0002,527,232
5Dec 29, 2022 02:5428,29751,015,96322,909,0001,992,0002,387,968
6Dec 29, 2022 02:5428,29948,906,92122,911,0001,992,0002,265,088
7Dec 29, 2022 02:5428,30650,578,31223,913,000996,0002,387,968
8Dec 29, 2022 02:5428,42653,758,77224,015,0001,000,0002,527,232
9Dec 29, 2022 02:5428,51655,853,10123,087,0002,007,0002,387,968
10Dec 29, 2022 02:5428,55548,821,61823,118,0002,010,0002,265,088
11Dec 29, 2022 02:5428,82192,085,29325,362,86502,228,224
12Dec 29, 2022 02:5428,91887,413,51725,447,90402,232,320
13Dec 29, 2022 02:5429,10893,225,54825,614,73402,224,128