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 06:50Kenneth MaplesKenneth MaplesScore: 60,963Success
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 06:5053,197111,999,75646,812,95902,260,992
2Dec 23, 2023 06:5053,207116,097,95546,822,32702,248,704
3Dec 23, 2023 06:5053,236110,373,07246,847,68902,256,896
4Dec 23, 2023 06:5060,73975,899,16052,442,0001,008,0002,371,584
5Dec 23, 2023 06:5060,82675,449,71852,518,0001,009,0002,273,280
6Dec 23, 2023 06:5060,90876,245,48853,599,00002,273,280
7Dec 23, 2023 06:5060,96384,293,80353,647,00002,277,376
8Dec 23, 2023 06:5060,97578,893,61352,646,0001,012,0002,371,584
9Dec 23, 2023 06:5060,98679,712,33552,656,0001,012,0002,281,472
10Dec 23, 2023 06:5060,99878,467,77652,666,0001,012,0002,289,664
11Dec 23, 2023 06:5061,00182,816,89552,669,0001,012,0002,289,664
12Dec 23, 2023 06:5061,04081,373,44753,715,00002,281,472