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 is encapsulation in java?
Why do we use string?
What is boolean example?
What all access modifiers are allowed for top class ?
What is a methodologist?
What is byte [] in java?
How can we use primitive data types as objects?
Can we execute java program without main method?
Can you override private or static method in java?
Can we have a try block without catch block?
Differentiate between stringbuffer and string?
Is there any way to skip finally block of exception even if some exception occurs in the exception block?
How can we achieve thread safety in java?
How can I right-justify a string?
What is overriding in java?