|
|||
Ugly NumbersUgly numbers are numbers whose only prime factors are 2, 3 or 5. The sequence shows the first 11 ugly numbers. By convention, 1 is included. Write a program to find and print the 1500th ugly number. Input and Output Specification
There is no input to this program. Output should consist of a single line as shown below,
with The 1500'th ugly number is <number>. Do not forget to print a newline character to the end of the line! |
|||
University of Debrecen; Faculty of Informatics; v. 09/30/2024 |