This shows you the differences between two versions of the page.
| — |
computer_science:python_prime [2025/03/12 15:48] (current) cosmo created |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | Find Prime number with Python | ||
| + | occurence=0 | ||
| + | for num in range(2, | ||
| + | if all(num%i!=0 for i in range(2, | ||
| + | occurence=occurence+1 | ||
| + | | ||
| + | print (occurence) | ||