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 listOct 6, 2023 09:14Robert BurkeRobert BurkeScore: 19,526Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 6, 2023 09:1418,07560,440,67615,905,56702,256,896
2Oct 6, 2023 09:1418,11791,967,53015,943,25102,260,992
3Oct 6, 2023 09:1418,17886,595,61615,996,78602,260,992
4Oct 6, 2023 09:1419,44835,341,55116,045,0001,069,0002,412,544
5Oct 6, 2023 09:1419,45038,880,58015,103,0002,013,0002,281,472
6Oct 6, 2023 09:1419,52440,679,16015,160,0002,021,0002,281,472
7Oct 6, 2023 09:1419,52639,415,36515,162,0002,021,0002,420,736
8Oct 6, 2023 09:1419,57241,492,61415,197,0002,026,0002,281,472
9Oct 6, 2023 09:1419,60836,866,65216,240,0001,015,0002,281,472
10Oct 6, 2023 09:1419,61938,683,14915,234,0002,031,0002,281,472
11Oct 6, 2023 09:1419,63031,998,68616,258,0001,016,0002,281,472
12Oct 6, 2023 09:1419,66738,066,00715,271,0002,036,0002,416,640