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 26, 2021 20:19Yuriy LyfenkoYuriy LyfenkoScore: 40,276Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 26, 2021 20:1940,058104,525,52035,251,16602,179,072
2Jun 26, 2021 20:1940,20793,383,39835,382,40602,195,456
3Jun 26, 2021 20:1940,20856,287,59034,373,0001,010,0002,342,912
4Jun 26, 2021 20:1940,219105,706,51135,392,88902,191,360
5Jun 26, 2021 20:1940,22361,864,96733,374,0002,022,0002,334,720
6Jun 26, 2021 20:1940,23569,026,92434,396,0001,011,0002,334,720
7Jun 26, 2021 20:1940,27658,897,26934,431,0001,012,0002,326,528
8Jun 26, 2021 20:1940,31465,584,54333,449,0002,027,0002,531,328
9Jun 26, 2021 20:1940,41061,582,33634,545,0001,016,0002,330,624
10Jun 26, 2021 20:1940,43454,704,51334,566,0001,016,0002,334,720
11Jun 26, 2021 20:1940,49159,886,23734,614,0001,018,0002,527,232
12Jun 26, 2021 20:1940,80661,754,95732,917,0002,992,0002,531,328