import java.util.*; // 注意类名必须为 Main, 不要有任何 package xxx 信息 public class Main { static int total = 0; public static void main(String[] args) { Scanner in = new Scanner(System.in); while (in.hasNextInt()) { int number = in.nextInt(); // 递归查询 int result = divide(number); System.out.println(result + 1); total = 0; } } static int divide(int num) { int nextNum = 0; boolean flag = false; for (int i = 2; i <= Math.sqrt(num); i++) { if (num % i == 0) { total++; nextNum = num / i; flag = true; } if (flag) { break; } } if (!flag) { return total; } return divide(nextNum); } }