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 singleton thread safe in java?
What do you mean by compiler?
What happens when heap memory is full?
How to sort a collection of custom Objects in Java?
What is an infinite loop? How infinite loop is declared?
Explain the importance of throws keyword in java?
What is the difference between overriding and overloading in OOPS.
Is java a virus?
What is hashmap in java?
What are keywords in programming?
Why put method is used?
Explain the init method?
What advantage do java's layout managers provide over traditional windowing systems?
Explain scope or life time of local variables in java?
What is balanced tree in java?