title: I have to get prime numbers by r, but I'm having an error
body: <p>I solve this problem for this way.
  but Errors continue to occur.
  I want to solve this errors.
  I want a way not to change much of the framework I used.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>is_Prime_Number &lt;- function(a)
  x &lt;- 1:100
  if(x&lt;=1){
   next
  } else if(x==2){
   print(a)
  } else if (x%%2==0){
   next
  } else{
   y &lt;-3
   is_prime &lt;-1
   while(y &lt;- as.integer(sqrt(x))){
    if(x%%y==0){
     is_prime &lt;-0
     break
    }y&lt;-y+2
   }if(is_prime ==1){
     print(a)
    }else{
     next
     }
  }
  result &lt;- is_Prime_Number(a)
  print(result)</code></pre>
  </div>
  </div>
  </p>