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
Why char array is favored over string for the storage of passwords?
Which types of exceptions are caught at compile time?
what invokes a threads run() method? : Java thread
What is instance means in java?
What are the core java topics?
I don’t want my class to be inherited by any other class. What should I do?
What is the function of character?
Which class is the superclass of all classes?
What are exception handling keywords in java?
What is the purpose of interface?
How infinite loop is declared?
What is the difference between menuitem and checkboxmenu item?
How many days will it take to learn java?
Is alive method in java?
Can long be null in java?