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 / sibiraj

if n=3,then it is not prime .the no. of factors are 3.
(2^3+1 = 9.9 is not prime. 9 has the factors 1,3,9.)

Is This Answer Correct ?    1 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What type of variable is error flag?

1038


Can you give few examples of final classes defined in java api?

973


What is the locale class in java programming?

1031


Does chrome use java?

933


What is a text string?

1049


Can a hashset contain duplicates java?

942


What are the common uses of "this" keyword in java ?

988


Explain about serializable interface in java?

963


What is comparable and comparator interface? List their differences

1065


Differentiate between postfix and prefix operators in java.

1095


when should you use stringbuilder class in a program?

944


What does @override mean?

1143


How to Sort Strings which are given in List and display in ascending order without using java api.

4375


What is the difference between path and classpath variables?

999


hr interview how many minutes asking question

2016