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:42Robert BurkeRobert BurkeScore: 21,726Success
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:4218,10479,207,60715,931,26202,236,416
2Oct 6, 2023 08:4218,12652,555,20915,950,87202,248,704
3Oct 6, 2023 08:4218,14977,873,18415,971,47102,232,320
4Oct 6, 2023 08:4221,70341,982,88617,089,0002,010,0002,392,064
5Oct 6, 2023 08:4221,70640,254,14218,096,0001,005,0002,404,352
6Oct 6, 2023 08:4221,72038,954,56718,108,0001,006,0002,281,472
7Oct 6, 2023 08:4221,72640,118,31418,113,0001,006,0002,387,968
8Oct 6, 2023 08:4221,77343,712,81318,152,0001,008,0002,400,256
9Oct 6, 2023 08:4221,80147,286,47518,176,0001,009,0002,396,160
10Oct 6, 2023 08:4221,85150,497,97718,217,0001,012,0002,387,968
11Oct 6, 2023 08:4221,99441,632,89317,318,0002,037,0002,281,472
12Oct 6, 2023 08:4222,03441,974,98119,390,00002,392,064