A perfect number finder - java