Identify prime and composite numbers (#819)