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 05:32apuxbtapuxbtScore: 31,339Success
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 05:3231,16148,815,39227,422,00002,265,088
2Dec 1, 2022 05:3231,16359,630,46127,423,00002,265,088
3Dec 1, 2022 05:3231,22448,215,55727,477,00002,387,968
4Dec 1, 2022 05:3231,22451,319,94726,460,0001,017,0002,383,872
5Dec 1, 2022 05:3231,27754,258,86627,524,00002,392,064
6Dec 1, 2022 05:3231,28857,276,86827,533,00002,383,872
7Dec 1, 2022 05:3231,33950,808,21027,578,00002,265,088
8Dec 1, 2022 05:3231,39547,262,79727,628,00002,383,872
9Dec 1, 2022 05:3231,49257,704,06226,687,0001,026,0002,387,968
10Dec 1, 2022 05:3232,46089,897,84328,564,45602,228,224
11Dec 1, 2022 05:3232,478121,223,64728,580,41102,232,320
12Dec 1, 2022 05:3232,55192,576,18728,644,78302,236,416