title: Why is the output,"Error in if (set[i]%%j == 0) { : missing value where TRUE/FALSE needed"
body: <p>The code block is printing prime numbers in a vector. The language is R. The code is:</p>
  <pre><code>count=0
   set&lt;-60:75
   for (i in 1:16){
     count=0
     for (j in 2:i-1){
       if(set[i]%%j==0){
         
         count=count+1
       }
     }
     if (count == 0){
       Print(set[i]+&quot;is Prime&quot;)}
     else {
         Print(set[i]+&quot; is not Prime&quot;)}
   }
  
  </code></pre>