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 23, 2023 20:22Kenneth MaplesKenneth MaplesScore: 35,265Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 23, 2023 20:2232,21192,848,16728,345,59802,232,320
2Dec 23, 2023 20:2232,253107,069,97328,382,30202,248,704
3Dec 23, 2023 20:2232,31996,654,99428,441,03002,232,320
4Dec 23, 2023 20:2235,17658,426,30428,958,0001,997,0002,265,088
5Dec 23, 2023 20:2235,22858,311,78929,001,0002,000,0002,265,088
6Dec 23, 2023 20:2235,23656,473,82629,008,0002,000,0002,392,064
7Dec 23, 2023 20:2235,26557,726,24030,032,0001,001,0002,387,968
8Dec 23, 2023 20:2235,26563,161,93630,032,0001,001,0002,265,088
9Dec 23, 2023 20:2235,28156,929,24330,046,0001,001,0002,265,088
10Dec 23, 2023 20:2235,28258,062,03730,047,0001,001,0002,396,160
11Dec 23, 2023 20:2235,33363,862,36430,090,0001,003,0002,265,088
12Dec 23, 2023 20:2235,40754,466,14129,148,0002,010,0002,265,088