title: Putting a for loop in a ternary operation
body: <p>Just for kicks and giggles, would it be possible to put a 'for' loop inside a ternary operation?</p>
  
  <p>Here's code for finding if a number is prime:</p>
  
  <pre><code>int isPrime(int number){
   int i, root = sqrt(number)+1; 
  
   if(number==1||!(number)||!(number&amp;1)) return 0;            
   if(number==2)                         return 1;
   for(i=3;i&lt;root;i+=2) if(!(number%i))  return 0;
  
   return 1;
  </code></pre>
  
  <p>}</p>
  
  <p>Here's the beginning of my "thought":</p>
  
  <pre><code> int isPrime(int number){
        return number&amp;1 || !(number&amp;1) || number==2 ? 0:1;
   }
  </code></pre>
  
  <p>would it be possible to add the for loop check in there?</p>