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 / siva prasad

hi,
if n is 3 digit no.Then 2^n+1 is not a prime no.The no.of
factors r coming.
Ex: n=100 then 2^100=1.2676506002282294E30 .

Is This Answer Correct ?    4 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the different forms of polymorphism?

1016


How do you sort data in java?

967


Does importing a package imports its sub-packages as well in java?

985


What is a line separator in java?

993


What is the difference between throw and throws in java?

1115


Which method must be implemented by all threads?

1281


What is parsing in grammar?

1054


What is the difference between the size and capacity of a vector?

1054


When does an object becomes eligible for garbage collection in java?

1080


What is difference between length and length() method in java ?

1007


What is a pattern what is an anti pattern?

984


how come we know the object is no more used in the class?

6492


worst case complexities of Quick sort and Merge sort.

1042


What are alternatives to java serialization?

1137


How list contains works in java?

994