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 20, 2021 22:26Yuriy LyfenkoYuriy LyfenkoScore: 46,015Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 20, 2021 23:4640,945105,558,42536,031,23602,224,128
2Jun 20, 2021 22:2641,065113,126,85636,137,55502,220,032
3Jun 20, 2021 23:4641,08887,830,80036,157,37702,215,936
4Jun 20, 2021 22:2641,10895,842,60336,174,66402,215,936
5Jun 20, 2021 23:4641,133146,243,13036,196,60702,224,128
6Jun 20, 2021 22:2641,255108,139,42836,304,48402,224,128
7Jun 20, 2021 23:4645,83062,730,97239,322,0001,008,0002,375,680
8Jun 20, 2021 23:4645,97061,510,58339,443,0001,011,0002,371,584
9Jun 20, 2021 22:2645,97265,797,67039,444,0001,011,0002,363,392
10Jun 20, 2021 22:2645,98561,546,86040,467,00002,269,184
11Jun 20, 2021 23:4645,99264,000,08239,462,0001,011,0002,269,184
12Jun 20, 2021 22:2646,00973,371,58139,476,0001,012,0002,375,680
13Jun 20, 2021 22:2646,01562,668,24639,481,0001,012,0002,269,184
14Jun 20, 2021 23:4646,03263,984,45839,496,0001,012,0002,375,680
15Jun 20, 2021 23:4646,04763,301,81439,508,0001,013,0002,269,184
16Jun 20, 2021 22:2646,05161,474,09739,512,0001,013,0002,375,680
17Jun 20, 2021 22:2646,07066,883,06440,542,00002,375,680
18Jun 20, 2021 23:4646,09562,222,62839,550,0001,014,0002,269,184
19Jun 20, 2021 23:4646,11963,913,72939,571,0001,014,0002,367,488
20Jun 20, 2021 22:2646,12266,522,25640,587,00002,273,280
21Jun 20, 2021 22:2646,12662,540,63539,577,0001,014,0002,269,184
22Jun 20, 2021 22:2646,13165,400,90039,581,0001,014,0002,367,488
23Jun 20, 2021 23:4646,15662,599,30239,602,0001,015,0002,371,584
24Jun 20, 2021 23:4646,21067,783,29140,665,00002,269,184