-3 Reputation Points
- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
0% Quality Score
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 2
- Posts with Downvotes
- 1
- Downvoting Members
- 2
1 Posted Topic
prime numbers < 100 int prime(int n,int m) { if(n<4) return 1; else if(n%2==0)return 0; else if(n%m==0)return 0; else if(m*m>n)return 1; else return prost(n,m+2); } int main() { int i; for(i=0;i<100;i++) { if(prime(i,3)) printf("%d",i); } return 0; }
The End.