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 listJun 19, 2021 11:36Andrey TsvetkovAndrey TsvetkovScore: 2,362,803Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 19, 2021 11:362,348,9482,135,485,1672,067,074,19902,191,360
2Jun 19, 2021 11:362,362,8032,134,992,5212,079,266,36702,179,072
3Jun 19, 2021 11:362,366,4932,174,354,4062,082,513,72402,191,360