|
|||
Count the Factors!Write a program that computes the number of different prime factors in a positive integer. Input SpecificationThe input tests will consist of a series of positive integers. Each number is on a line on its own. The maximum value is 1 000 000. The end of the input is reached when the number 0 is met. The number 0 should not be considered as part of the test set. Output SpecificationThe program should output each result on a line by its own, following the format given in the sample output. Sample Input
Output for Sample Input
|
|||
University of Debrecen; Faculty of Informatics; v. 09/30/2024 |