5) Write a 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.


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More General Aptitude Interview Questions

The LCM of two numbers is 60. The sum of the numbers is 50. What are the numbers?

10 Answers   Alps, IBM,


falling height is proportional to square of the time. one object falls 64cm in 2sec than in 6sec from how much height the object will fall.

0 Answers   Accenture,


On Monday a manufacturer processed a batch of bats, on Tuesday he processed three times as many, and on Wednesday he processed 4000 bats. In the three days, He processed 16000 bats. How many did he process on Tuesday?

0 Answers   Cap Gemini,


Find the next series: AA AB BC CE ?

0 Answers   CTS,


Two cars are 15 kms apart. One is turning at a speed of 50kmph and the other at 40kmph . How much time will it take for the two cars to meet?

0 Answers   3i Infotech, Canara Bank, Geodesic,






A fly is there 1 feet below the ceiling right across a wall length is 30m at equal distance from both the ends. There is a spider 1 feet above floor right across the long wall eqidistant from both the ends. If the width of the room is 12m and 12m, what distance is to be travelled by the spider to catch the fly? if it takes the shortest path.

0 Answers   Infosys,


It takes eight hours for a 600 km journey, if 120 km is done by train and the rest by car. It takes 20 minutes more, if 200 km is done by train and the rest by car. The ratio of the speed of the train?

0 Answers  


One ship goes along the stream direction 28 km and in opposite direction 13 km in 5 hrs for each direction.What is the velocity of stream? `

0 Answers   Accenture,


Who wrote the recent best selling book "The Road Ahead"? a) Bill Clinton b) I.K. Gujral c) Bill Gates c) T.N. Seshan

8 Answers   Sodexo,


What is Derivative and different types of Derivatives? Difference between Call and Put Option?

4 Answers   eClerx,


The time showed by an analog clock at a moment is 11 am then 1234567890 hours later it will show the time as:

0 Answers   Wipro,


6. x% of y is y% of ? (A) x/y (B) 2y (C) x (D) can't be determined

7 Answers  


Categories