java program that takes a 3 digit number n and finds out
whether
the number 2^n + 1 is prime, or if it is not prime find out
its
factors.
Answer Posted / sibiraj
if n=3,then it is not prime .the no. of factors are 3.
(2^3+1 = 9.9 is not prime. 9 has the factors 1,3,9.)
| Is This Answer Correct ? | 1 Yes | 4 No |
Post New Answer View All Answers
What is the flag in java?
What is == in java?
what is meant by HQL?
What is the abstract class?
Which is the best sorting technique in java?
What is the use of toarray () in java?
Objects or references which of them gets garbage collected?
Which collection allows duplicate values in java?
What is difference between null and void?
What is parse method?
What is keyset in java?
Is null a string in java?
What is java reflection?
How will you invoke any external process in java?
In how many ways we can do exception handling in java?