Write a program to generate prime factors of a given integer?
Answer Posted / kalee
Pseudo code: Algorithm ....
If N is the integer, then, any number greater than sqrt(N) will not be a factor of that integer...
so it is enough to check till sqrt(N) integers, that is it is divisible or not... further, if N is odd... forget all the even integers, as they cannot be a part of factors.. :)
Happy coding...
| Is This Answer Correct ? | 6 Yes | 9 No |
Post New Answer View All Answers
WRITE A PROGRAM TO MERGE TWO SORTED ARRAY USING MERGE SORT TECHNIQUE..
Is r written in c?
we called a function and passed something do it we have always passed the "values" of variables to the called function. such functions calles are called a) calls by reference b) calls by value c) calls by zero d) none of the above
What are inbuilt functions in c?
Is c pass by value or reference?
What are enums in c?
What do you mean by scope of a variable in c?
How can I find the modification date and time of a file?
the constant value in the case label is followed by a a) semicolon b) colon c) braces d) none of the above
What is the purpose of type declarations?
What is the difference between declaring a variable and defining a variable?
What is the explanation for cyclic nature of data types in c?
How do you print only part of a string?
Tell me about low level programming languages.
hello freinds next week my interview in reliance,nybody has an idea about it intervew questions..so tell