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 / prabhu

Mr Nithi U'r Wrong If it is 2^n-1 than U'r correct
Because a^2 - b^2 = (a+b)*(a-b)

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does %d do in java?

578


Why main function is static?

674


Java is pass by value or pass by reference? Explain

534


What is the difference between post and put?

536


Explain the inheritance?

577






What is boolean data type in java?

568


Explain the difference between comparator and comparable in java?

484


Difference between abstract and concrete class ?

581


Can an interface be final?

546


What design pattern you have used in your project? I answered Factory pattern, how it is implemented? What are its advantage? Do know about Abstract Factory?

1936


Is there any difference between synchronized methods and synchronized statements?

584


What is parameters example?

554


What is the functionality of the stub?

571


Explain about complier design(phases)

628


What is the purpose of the system class in java programming?

545