Guest User

Untitled

a guest
Aug 22nd, 2019
123
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2. int is_prime(int number){
  3. int i;
  4. for (number =1; i <= number; i++){
  5. return is_prime;
  6.  
  7.  
  8.  
  9. }
  10.  
  11.  
  12. }
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20. int main(){
  21. int i,n;
  22. scanf("%d",&n);
  23. for (i = 1; i <= n; i++){
  24. if (is_prime(i))
  25. printf("%d is a prime nummber.\n",n);
  26. }
  27.  
  28. return 0;
  29.  
  30.  
  31.  
  32. }
RAW Paste Data