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 27, 2021 19:35Yuriy LyfenkoYuriy LyfenkoScore: 36,969Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 27, 2021 19:3531,936101,315,53928,103,88602,220,032
2Jun 27, 2021 19:3531,97996,574,00228,141,57402,224,128
3Jun 27, 2021 19:3532,092116,256,34028,241,20902,228,224
4Jun 27, 2021 19:3536,88153,379,28531,441,0001,014,0002,265,088
5Jun 27, 2021 19:3536,93357,007,99032,501,00002,383,872
6Jun 27, 2021 19:3536,96459,392,64631,512,0001,016,0002,265,088
7Jun 27, 2021 19:3536,96957,812,19331,517,0001,016,0002,265,088
8Jun 27, 2021 19:3537,00957,705,94932,568,00002,265,088
9Jun 27, 2021 19:3537,03661,721,44231,574,0001,018,0002,265,088
10Jun 27, 2021 19:3537,10160,979,82931,629,0001,020,0002,265,088
11Jun 27, 2021 19:3537,12756,253,71332,672,00002,265,088
12Jun 27, 2021 19:3537,24963,206,87131,755,0001,024,0002,523,136