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
Is alive in java?
Can subclass overriding method declare an exception if parent class method doesn't throw an exception?
Difference between overriding and overloading in java?
What is lossy conversion in java?
Is array a class in java?
What is difference between static class and normal class?
Can static method access instance variables ?
Explain the difference between private, public, package and protected in java?
What state does a thread enter when it terminates its processing in java programming?
In java, how many ways you can take input from the console?
How finally used under exception handling?
How do you override a method?
Why do we need wrapper class?
What is an argument java?
Differentiate between a constructor and a method? Can we mark constructors final?