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

What is the full form of jpeg?

514


What is the difference between Grid and Gridbaglayout?

576


What does file separator do in java?

532


What do you mean by hashing?

641


what is thread? What are the high-level thread states? Or what are the states associated in the thread? : Java thread

495






Define nashorn in java8.

563


What do you mean by an object in java?

626


What is the simpletimezone class in java programming?

534


What is meant by main method?

577


Tell me a few examples of final classes defined in Java API?

557


What do you understand by soft reference?

582


What is a platform?

538


What is difference between this and super keyword?

512


What is type inference in java8?

573


What is meant by anonymous class?

587