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 08:54Robert BurkeRobert BurkeScore: 20,426Success
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 08:5418,23860,188,87516,049,32002,256,896
2Oct 6, 2023 08:5418,35274,622,03416,149,34002,260,992
3Oct 6, 2023 08:5418,36281,352,33716,158,78702,256,896
4Oct 6, 2023 08:5420,35838,594,14317,915,00002,416,640
5Oct 6, 2023 08:5420,38644,436,67115,947,0001,993,0002,281,472
6Oct 6, 2023 08:5420,42040,962,30815,974,0001,996,0002,281,472
7Oct 6, 2023 08:5420,42634,948,15916,918,0001,057,0002,408,448
8Oct 6, 2023 08:5420,42740,013,97316,978,000998,0002,408,448
9Oct 6, 2023 08:5420,43239,037,48416,982,000998,0002,420,736
10Oct 6, 2023 08:5420,49035,322,01717,030,0001,001,0002,281,472
11Oct 6, 2023 08:5420,63240,835,26816,139,0002,017,0002,416,640
12Oct 6, 2023 08:5420,68839,255,42516,183,0002,022,0002,277,376