some improvements to the perferct number checker, week 39, java programming

Signed-off-by: Alexander Skjolden <alex@plastboks.net>