How to determine sum of digit is prime or not?
Answers
Answered by
1
if the number is not a really order 1 and itself
Answered by
1
Take a number N=abcdef...¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯N=abcdef...¯ where a,b,c,d,e,…a,b,c,d,e,… are the digits of NN.
Let kk be the sum of those digits : a+b+c+d+e+...=ka+b+c+d+e+...=k
If kk is any of 1,2,4,5,7,81,2,4,5,7,8 then NN is prime. Otherwise it is not a prime.
Example: N=17N=17 and k=1+7=8,k=1+7=8, Therefore NN is prime.
Let kk be the sum of those digits : a+b+c+d+e+...=ka+b+c+d+e+...=k
If kk is any of 1,2,4,5,7,81,2,4,5,7,8 then NN is prime. Otherwise it is not a prime.
Example: N=17N=17 and k=1+7=8,k=1+7=8, Therefore NN is prime.
Similar questions
English,
8 months ago
Math,
8 months ago
Computer Science,
1 year ago
Economy,
1 year ago
India Languages,
1 year ago