A blog posting problems and tutorials for blog visitors to practice and gain experience.
AD1
Saturday, 12 November 2016
Prime factors
A positive integer is entered through the keyboard. Write a function to obtain the prime factors of this number.For example, prime factors of 24 are 2, 2, 2 and 3, whereas prime factors of 35 are 5 and 7.
No comments:
Post a Comment