Last active
October 6, 2021 18:21
-
-
Save galihboy/8d20f396a23fbd39a83bb731b1111727 to your computer and use it in GitHub Desktop.
Pemeriksaan bilangan prima
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bilangan = 5 | |
prima = True | |
for i in range(2, bilangan): | |
if (bilangan % i == 0): | |
prima = False | |
break | |
print(prima) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment