Please read the new rule regarding the restriction on the use of AI tools. ×

A number theory problem !
Difference between en2 and en3, changed 74 character(s)
A problem came in my mind few days ago. And now I am very willing to know the ans. I tried but couldn't solve it.↵

You are given n numbers 1<= n <= (10^5) ↵
you have to 
min**maximize** the gcd of those numbers.↵

You can do one operation : Replace **a** with **a-1** (a is a number)↵

**Note: ** It is not a part of any ongoing contest.↵

Can any one please tell me any solution that will work in this time constraint. ↵
Thanks in advance.


**I am very sorry guys. You have to maximize .. not minimize**

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en3 English Anthony_Jakson 2020-08-16 06:31:32 74
en2 English Anthony_Jakson 2020-08-15 23:52:50 18
en1 English Anthony_Jakson 2020-08-15 23:50:59 444 Initial revision (published)