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 18:54Yuriy LyfenkoYuriy LyfenkoScore: 44,931Success
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 18:5432,61985,672,46128,704,93402,215,936
2Jun 27, 2021 18:5432,66784,020,64728,746,94802,224,128
3Jun 27, 2021 18:5432,67292,123,99228,750,99102,215,936
4Jun 27, 2021 18:5444,84462,481,97838,452,0001,011,0002,371,584
5Jun 27, 2021 18:5444,84565,503,09639,464,00002,379,776
6Jun 27, 2021 18:5444,87262,440,26239,487,00002,269,184
7Jun 27, 2021 18:5444,93165,527,40038,526,0001,013,0002,379,776
8Jun 27, 2021 18:5444,98960,847,45338,575,0001,015,0002,269,184
9Jun 27, 2021 18:5445,03063,494,79438,610,0001,016,0002,269,184
10Jun 27, 2021 18:5445,03360,748,83538,613,0001,016,0002,269,184
11Jun 27, 2021 18:5445,07467,026,27139,665,00002,265,088
12Jun 27, 2021 18:5445,10865,423,40639,695,00002,269,184