User Tools

Site Tools


computer_science:python_prime

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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,1000):
 +    if all(num%i!=0 for i in range(2,num)):
 +        occurence=occurence+1
 +        
 +print (occurence)
computer_science/python_prime.txt ยท Last modified: 2025/03/12 15:48 by cosmo