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 17, 2021 15:14Yuriy LyfenkoYuriy LyfenkoScore: 2,054,266Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 17, 2021 15:142,042,2721,852,266,0681,797,199,12902,256,896
2Jun 17, 2021 15:252,047,0481,864,390,8691,801,402,03802,248,704
3Jun 17, 2021 15:252,051,6621,869,341,0361,805,462,79602,252,800
4Jun 17, 2021 15:142,054,2661,878,902,2701,807,753,69902,248,704
5Jun 17, 2021 15:142,054,6491,873,057,4491,808,091,45202,244,608
6Jun 17, 2021 15:252,055,6751,879,877,9221,808,993,65602,252,800