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 full form of jpeg?
What is the difference between Grid and Gridbaglayout?
What does file separator do in java?
What do you mean by hashing?
what is thread? What are the high-level thread states? Or what are the states associated in the thread? : Java thread
Define nashorn in java8.
What do you mean by an object in java?
What is the simpletimezone class in java programming?
What is meant by main method?
Tell me a few examples of final classes defined in Java API?
What do you understand by soft reference?
What is a platform?
What is difference between this and super keyword?
What is type inference in java8?
What is meant by anonymous class?