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 18:11Kenneth MaplesKenneth MaplesScore: 53,290Success
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 18:1153,04378,546,16745,664,0001,014,0002,265,088
2Dec 23, 2023 18:1153,05269,886,66145,672,0001,014,0002,265,088
3Dec 23, 2023 18:1153,10374,199,15546,731,00002,392,064
4Dec 23, 2023 18:1153,23677,661,64745,852,000996,0002,265,088
5Dec 23, 2023 18:1153,24173,119,55344,859,0001,993,0002,392,064
6Dec 23, 2023 18:1153,25370,129,51845,866,000997,0002,510,848
7Dec 23, 2023 18:1153,29074,750,19744,900,0001,995,0002,265,088
8Dec 23, 2023 18:1153,29172,552,32445,877,0001,019,0002,265,088
9Dec 23, 2023 18:1153,29581,148,83845,903,000997,0002,265,088
10Dec 23, 2023 18:1155,643119,954,93648,966,20202,244,608
11Dec 23, 2023 18:1155,686118,565,72749,003,34002,244,608
12Dec 23, 2023 18:1155,751109,575,48349,060,85802,228,224