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 / siva prasad

hi,
if n is 3 digit no.Then 2^n+1 is not a prime no.The no.of
factors r coming.
Ex: n=100 then 2^100=1.2676506002282294E30 .

Is This Answer Correct ?    4 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you add spaces in java?

516


What is string made of?

531


What is the purpose of the finalize() method?

717


What do you mean by an interface in java?

574


what is encapsulation in java? Explain

668






Does constructor be static?

570


What is the difference between preparedstatement and statement in java?

557


Can we call thread start () twice?

521


What is serialization in java?

570


Can we extend singleton class in java?

552


What is the meaning of course?

589


Explain exception chaining in java?

613


How will you initialize an Applet?

624


What is the difference between applet and application?

552


Which sort is best in java?

537