Number testing functions implemented