Skip to content

Instantly share code, notes, and snippets.

@lockdef
Created April 18, 2019 14:08
Show Gist options
  • Save lockdef/f22ebcd83f4a2561f11accb2cf3fae6b to your computer and use it in GitHub Desktop.
Save lockdef/f22ebcd83f4a2561f11accb2cf3fae6b to your computer and use it in GitHub Desktop.
素数判定ver2
n=int(input());print('YNEOS'[n-len([_ for _ in range(1,n+1) if n%_])==2::2])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment