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 break and continue statement?
Is a class subclass of itself?
How do you compare arrays in java?
What are the Static and Dynamic Variables? Differentiate them.
How does remove work in java?
What is autoboxing in java?
Are maps ordered java?
What is difference between overloading and overriding in java?
Is break statement can be used as labels in java?
How do singleton patterns work?
What is the difference between choice and list?
What is the loop in java?
What is difference between jdk,jre and jvm?
What is the lifetime and scope of a variable?
What is meant by memory leak?