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 listNov 19, 2021 23:54Mikhail ShirokovMikhail ShirokovScore: 3,397,908Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 19, 2021 23:543,366,2073,022,768,1792,962,261,88402,265,088
2Nov 19, 2021 23:543,397,9083,056,201,3402,990,159,04102,252,800
3Nov 19, 2021 23:543,414,3183,069,268,8193,004,600,05902,260,992