Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Is alive in java?

930


Can subclass overriding method declare an exception if parent class method doesn't throw an exception?

1049


Difference between overriding and overloading in java?

1052


What is lossy conversion in java?

1179


Is array a class in java?

960


What is difference between static class and normal class?

1098


Can static method access instance variables ?

1109


Explain the difference between private, public, package and protected in java?

1031


What state does a thread enter when it terminates its processing in java programming?

1020


In java, how many ways you can take input from the console?

980


How finally used under exception handling?

926


How do you override a method?

1005


Why do we need wrapper class?

976


What is an argument java?

954


Differentiate between a constructor and a method? Can we mark constructors final?

1174