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
What are the types of inner classes (non-static nested class) used in java?
What is re-factoring in software?
What does system out println () do?
How can we make sure main() is the last thread to finish in java program?
What are internal and external variables?
what is heap memory?
If an object reference is set to null, will the garbage collector immediately free the memory held by that object?
What is the difference between compiler and jvm?
What is style and indentation?
What is the null?
Is integer passed by reference in java?
Differentiate jar and war files?
What is a control variable example?
What is json parser in java?
Write down program for following scenario. Use java coding standard. You have array list with some words in it..we will call it as dictionary….and you have a arbitrary string containing some chars in it. You have to go through each word of dictionary and find out if that word can be constructed with the help of chars from arbitrary string given. If you find the word print it else print none.