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:19Oleg TOleg TScore: 79,210Success
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:1978,807127,742,11169,350,38602,191,360
2Feb 19, 2023 20:3078,988130,625,59169,509,24402,191,360
3Feb 19, 2023 19:5079,144125,245,37269,647,00602,314,240
4Feb 19, 2023 19:5079,199128,777,79569,694,88302,195,456
5Feb 19, 2023 20:3079,210135,665,16369,704,98802,318,336
6Feb 19, 2023 19:5079,307126,246,84269,790,52502,191,360
7Feb 19, 2023 20:1979,326124,821,12769,807,13902,203,648
8Feb 19, 2023 20:1979,500141,475,37869,959,60202,187,264
9Feb 19, 2023 20:3079,532144,434,07469,987,82802,260,992