10-07-2005, 10:21 PM
In 25 lines or less, write a program in QBasic that lists the prime factors of any positive integer. The program prompts the user for a number, then prints to the screen: "The prime factors are:", and then lists them. If the entered number is already prime, it will be the only number listed. The number 1 is not considered prime.
Statements separated by colons are considered separate lines.
For checking purposes, if you enter 987654321, the list should read: 3,3,17,17,379721
Statements separated by colons are considered separate lines.
For checking purposes, if you enter 987654321, the list should read: 3,3,17,17,379721