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 15:03apuxbtapuxbtError
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 15:0300000Error: expected "51379067736670 ", got "51379067736297 "
2Dec 1, 2022 15:0330,43653,246,53526,784,00002,265,088
3Dec 1, 2022 15:0330,55753,941,29426,890,00002,265,088
4Dec 1, 2022 15:0330,56755,213,27826,899,00002,265,088
5Dec 1, 2022 15:0330,57059,694,05725,906,000996,0002,265,088
6Dec 1, 2022 15:0330,57352,107,43525,908,000996,0002,265,088
7Dec 1, 2022 15:0330,57449,117,11725,909,000996,0002,387,968
8Dec 1, 2022 15:0330,57653,208,05124,914,0001,993,0002,392,064
9Dec 1, 2022 15:0330,60254,140,98125,933,000997,0002,265,088
10Dec 1, 2022 15:0330,71752,120,63226,030,0001,001,0002,265,088
11Dec 1, 2022 15:0330,72695,709,60427,039,30102,232,320
12Dec 1, 2022 15:0330,73888,290,27227,049,35702,232,320
13Dec 1, 2022 15:0330,76782,999,87027,075,37302,236,416