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 2, 2023 19:13apuxbtapuxbtScore: 36,241Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 2, 2023 19:1336,02792,137,24231,703,90302,207,744
2Oct 2, 2023 19:1336,07294,063,46631,743,34602,207,744
3Oct 2, 2023 19:1336,07861,110,45829,701,0002,048,0002,338,816
4Oct 2, 2023 19:1336,08493,015,34931,753,73502,232,320
5Oct 2, 2023 19:1336,10359,154,63530,747,0001,024,0002,359,296
6Oct 2, 2023 19:1336,23958,442,76329,897,0001,993,0002,502,656
7Oct 2, 2023 19:1336,24157,607,55129,899,0001,993,0002,338,816
8Oct 2, 2023 19:1336,26556,660,63729,919,0001,994,0002,510,848
9Oct 2, 2023 19:1336,30758,168,63428,955,0002,995,0002,355,200
10Oct 2, 2023 19:1336,47457,115,13329,088,0003,009,0002,342,912
11Oct 2, 2023 19:1336,47457,362,88531,094,0001,003,0002,347,008
12Oct 2, 2023 19:1336,47752,025,11031,097,0001,003,0002,494,464