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 24, 2023 01:19Kenneth MaplesKenneth MaplesScore: 24,994Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 24, 2023 01:1924,89745,805,92719,918,0001,991,0002,265,088
2Dec 24, 2023 01:1924,93251,661,55120,943,000997,0002,396,160
3Dec 24, 2023 01:1924,95048,057,63120,958,000998,0002,265,088
4Dec 24, 2023 01:1924,97847,428,44520,982,000999,0002,265,088
5Dec 24, 2023 01:1924,98353,089,45920,986,000999,0002,392,064
6Dec 24, 2023 01:1924,99448,397,48419,996,0001,999,0002,510,848
7Dec 24, 2023 01:1924,99452,577,77020,996,000999,0002,506,752
8Dec 24, 2023 01:1925,07751,835,20320,062,0002,006,0002,387,968
9Dec 24, 2023 01:1925,08046,172,09022,070,00002,387,968
10Dec 24, 2023 01:1925,703117,411,86522,618,70702,248,704
11Dec 24, 2023 01:1925,71885,046,21822,632,09302,236,416
12Dec 24, 2023 01:1925,81395,436,22822,715,67302,240,512