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
Can I learn java in 3 months?
Explain parallel processing in java8?
When is the finalize() called?
How large is a boolean?
What are autoboxing and unboxing? When does it occur?
what is an objects lock and which objects have locks? : Java thread
What is the purpose of interface?
What is a cup of java?
What is * argv?
What is a local block?
Explain an algorithm to find depth of a binary tree.
Why declare Main() method as a static in java ?
What is type parameter in java?
I want to print “hello” even before main is executed. How will you acheive that?
What is the different between get and post?