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 string builder?

469


How do you use substring in java?

546


What is connection class in java?

508


Why stringbuilder is not thread safe?

542


What is bufferedwriter?

540






What is java ceil?

572


In java, how many ways you can take input from the console?

521


What are constants and how to create constants in java?

558


Can we call a non-static method from inside a static method?

561


What is singleton pattern?

555


What is the main purpose of java?

514


Why do people says “java is robust”?

559


How do you declare an empty string?

622


How many bits is a string in java?

577


Can a final method be overloaded?

510