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


Please Help Members By Posting Answers For Below Questions

Why char array is favored over string for the storage of passwords?

555


Which types of exceptions are caught at compile time?

560


what invokes a threads run() method? : Java thread

567


What is instance means in java?

560


What are the core java topics?

561






I don’t want my class to be inherited by any other class. What should I do?

571


What is the function of character?

522


Which class is the superclass of all classes?

596


What are exception handling keywords in java?

603


What is the purpose of interface?

573


How infinite loop is declared?

532


What is the difference between menuitem and checkboxmenu item?

771


How many days will it take to learn java?

512


Is alive method in java?

504


Can long be null in java?

540