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
### Keybase proof | |
I hereby claim: | |
* I am ernest22 on github. | |
* I am ernest22 (https://keybase.io/ernest22) on keybase. | |
* I have a public key ASDirjDDgNTltqn4SJuyXvL63qzvHTVN7a5lGcm2wLx-Ygo | |
To claim this, I am signing this object: |
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
def first_100_prime_numbers(): | |
# Return a list containing the first 100 prime numbers | |
# Replace the line below with your solution | |
p = [] | |
i = 0 | |
a = 2 | |
while i < 100: | |
for j in range(2,a): | |
if (a % j) == 0: | |
break |