Top code problem: almost perfect numbers