simpler 'isprime'
list comprehension replacing generator