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
What does c mean in basketball?
What is c method?
What is use of null pointer in c?
In C language, a variable name cannot contain?
What does c in a circle mean?
What is self-referential structure in c programming?
What is a program?
What is a struct c#?
How can I do peek and poke in c?
plz let me know how to become a telecom protocol tester. thank you.
Not all reserved words are written in lowercase. TRUE or FALSE?
Can we increase size of array in c?
write a program which the o/p should b in such a way that s triangle if I/p is 3,a Square/rectangle if I/P=4,a pentagon if I/P=5 and so on...forget about the I/P which is less than 3
Can you explain what keyboard debouncing is, and where and why we us it? please give some examples
Why does everyone say not to use gets?