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

What is encapsulation in java?

1046


Why do we use string?

969


What is boolean example?

890


What all access modifiers are allowed for top class ?

1138


What is a methodologist?

991


What is byte [] in java?

955


How can we use primitive data types as objects?

900


Can we execute java program without main method?

1007


Can you override private or static method in java?

929


Can we have a try block without catch block?

941


Differentiate between stringbuffer and string?

989


Is there any way to skip finally block of exception even if some exception occurs in the exception block?

999


How can we achieve thread safety in java?

1084


How can I right-justify a string?

1093


What is overriding in java?

988