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
Is java good for beginners?
What is e in java?
What is the use of flag?
Give reasons supporting that string is immutable.
Why set is used in java?
Which is better ascii or unicode?
When will you define a method as static in Java?
Is call by reference possible in java?
What is the maximum size of a string in java?
How do you pass by reference?
What is the finalize method do?
How does the java compiler work?
Write a regular expression to validate a password. A password must start with an alphabet and followed by alphanumeric characters; its length must be in between 8 to 20.
Why wait(),notify(),notifyAll() methods defined in Object class althought we are using in only threads.
Can a function return a function?