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
How do you sort in descending order in java using collections sort?
How many bits is a float?
What is the purpose of the enableevents() method in java programming?
Explain features of interfaces in java?
Why do we use predicate in java?
Can we overload final method in java?
What is an arraylist in java?
Is overriding possible in java?
when to use ArrayList and when to use HashMap in webApplication.
What is the difference between JDK and JVM?
What is regex java?
What is meant by tab pans?
Give few difference between constructor and method?
Define the term string pool?
What is an image buffer?