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
What does %d do in java?
Why main function is static?
Java is pass by value or pass by reference? Explain
What is the difference between post and put?
Explain the inheritance?
What is boolean data type in java?
Explain the difference between comparator and comparable in java?
Difference between abstract and concrete class ?
Can an interface be final?
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?
Is there any difference between synchronized methods and synchronized statements?
What is parameters example?
What is the functionality of the stub?
Explain about complier design(phases)
What is the purpose of the system class in java programming?