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:20Kenneth MaplesKenneth MaplesScore: 25,227Success
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:2025,14449,185,85321,122,0001,005,0002,265,088
2Dec 24, 2023 01:2025,16752,034,23020,134,0002,013,0002,392,064
3Dec 24, 2023 01:2025,18151,982,94921,152,0001,007,0002,265,088
4Dec 24, 2023 01:2025,18145,062,92321,152,0001,007,0002,387,968
5Dec 24, 2023 01:2025,21750,593,08720,174,0002,017,0002,265,088
6Dec 24, 2023 01:2025,22550,084,38221,189,0001,009,0002,379,776
7Dec 24, 2023 01:2025,22753,450,64721,191,0001,009,0002,383,872
8Dec 24, 2023 01:2025,23850,195,38721,200,0001,009,0002,392,064
9Dec 24, 2023 01:2025,40643,631,31721,341,0001,016,0002,265,088
10Dec 24, 2023 01:2025,64277,155,13422,565,23702,244,608
11Dec 24, 2023 01:2025,66098,658,05022,581,13602,236,416
12Dec 24, 2023 01:2025,76279,067,87822,670,14002,240,512