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 string builder?
How do you use substring in java?
What is connection class in java?
Why stringbuilder is not thread safe?
What is bufferedwriter?
What is java ceil?
In java, how many ways you can take input from the console?
What are constants and how to create constants in java?
Can we call a non-static method from inside a static method?
What is singleton pattern?
What is the main purpose of java?
Why do people says “java is robust”?
How do you declare an empty string?
How many bits is a string in java?
Can a final method be overloaded?