Skip to content

Instantly share code, notes, and snippets.

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