Write a Java program that prompts the user to input a positive integer, and then checks if the given number is a perfect number or not. A perfect number is a positive integer that is equal to the sum of its proper divisors (excluding itself). Example of perfect numbers include 6, 28, 496, and 8128. Your program should output whether the given number is a perfect number or not.
This prompt doesn't seem malicious.