Given a 5 digit number X, lets say it can be represented as Newton such that:- N, e, w,


Question:

Given a 5 digit number X, lets say it can be represented as Newton such that:- N, e, w, t, o, n are all unique integers between 5 to 9
1.(N*10 + e) % 2 =0 2. (N*100 + e10 + w) % 3 = 0 3. (N’1000 + e 100 + w*10 + t) % 4 =0 4. (N 10000 + e*1000 + w*100 + t10 +o) % 5 =0
Print the sum of all possible numbers of X​

 


Leave a Reply

Your email address will not be published. Required fields are marked *