Ugly numbers are numbers whose only prime factors are 2, 3 or 5. First 10 ugly numbers are:
1, 2, 3, 4, 5, 6, 8, 9, 10, 12, ...
By convention, 1 is included. Write a program to find and print the first 1000 ugly numbers.
http://tech-queries.blogspot.com/2011/03/ugly-number.html
1, 2, 3, 4, 5, 6, 8, 9, 10, 12, ...
By convention, 1 is included. Write a program to find and print the first 1000 ugly numbers.
http://tech-queries.blogspot.com/2011/03/ugly-number.html
No comments:
Post a Comment