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 listFeb 19, 2023 20:17Oleg TOleg TScore: 86,671Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 19, 2023 20:1786,422142,724,00776,051,58402,256,896
2Feb 19, 2023 19:5986,445143,880,88776,071,99402,203,648
3Feb 19, 2023 19:5986,461136,612,79676,085,72602,195,456
4Feb 19, 2023 20:1786,671144,043,12876,270,23102,260,992
5Feb 19, 2023 19:5986,764142,069,51476,352,51402,191,360
6Feb 19, 2023 20:1786,896140,623,47076,468,04502,195,456