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 18, 2021 08:25alex3dalex3dScore: 7,389,522Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 18, 2021 08:257,339,5176,515,898,5566,458,775,14502,252,800
2Jun 18, 2021 08:257,389,5226,577,770,5196,502,779,54902,252,800
3Jun 18, 2021 08:257,426,9366,598,669,6696,535,703,76702,248,704