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 04:19Yuriy LyfenkoYuriy LyfenkoScore: 45,192Success
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 04:1942,683102,969,57937,560,94902,220,032
2Jun 27, 2021 04:1942,710105,874,99937,585,17902,228,224
3Jun 27, 2021 04:1942,806104,456,64337,669,09102,220,032
4Jun 27, 2021 04:1945,14764,915,50339,729,00002,506,752
5Jun 27, 2021 04:1945,15067,616,10639,732,00002,265,088
6Jun 27, 2021 04:1945,17468,049,61139,753,00002,379,776
7Jun 27, 2021 04:1945,19271,345,46339,769,00002,375,680
8Jun 27, 2021 04:1945,28167,468,66438,851,000996,0002,371,584
9Jun 27, 2021 04:1945,33367,607,33138,896,000997,0002,269,184
10Jun 27, 2021 04:1945,41064,484,57138,962,000999,0002,269,184
11Jun 27, 2021 04:1945,41367,279,79237,965,0001,998,0002,371,584
12Jun 27, 2021 04:1945,41670,478,06737,968,0001,998,0002,269,184