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


Please Help Members By Posting Answers For Below Questions

How do you sort in descending order in java using collections sort?

510


How many bits is a float?

546


What is the purpose of the enableevents() method in java programming?

595


Explain features of interfaces in java?

562


Why do we use predicate in java?

562






Can we overload final method in java?

557


What is an arraylist in java?

519


Is overriding possible in java?

510


when to use ArrayList and when to use HashMap in webApplication.

3896


What is the difference between JDK and JVM?

636


What is regex java?

567


What is meant by tab pans?

652


Give few difference between constructor and method?

524


Define the term string pool?

590


What is an image buffer?

543