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 1, 2022 06:22apuxbtapuxbtScore: 33,830Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 1, 2022 06:2232,712109,649,22028,786,25402,236,416
2Dec 1, 2022 06:2232,826109,618,64028,887,31902,232,320
3Dec 1, 2022 06:2232,87792,187,61028,932,08802,236,416
4Dec 1, 2022 06:2233,77054,551,59128,694,0001,024,0002,387,968
5Dec 1, 2022 06:2233,80055,663,81029,744,00002,265,088
6Dec 1, 2022 06:2233,80955,660,17129,752,00002,265,088
7Dec 1, 2022 06:2233,83053,596,29429,770,00002,383,872
8Dec 1, 2022 06:2233,96056,258,24229,885,00002,265,088
9Dec 1, 2022 06:2233,96860,925,37927,900,0001,992,0002,265,088
10Dec 1, 2022 06:2233,97255,850,11529,895,00002,383,872
11Dec 1, 2022 06:2233,97458,712,23028,901,000996,0002,387,968
12Dec 1, 2022 06:2233,99959,460,16727,925,0001,994,0002,375,680