made abundant numbers function more efficient