Title: [Java] public static boolean checkPrime(int x) { for(int i = 2; i <= (int)Ma Author: gando Pastebin link: http://pastebin.com/tHe6ajf5 First Edit: Tuesday 18th of October 2011 03:53:58 PM CDT Last Edit: Tuesday 18th of October 2011 03:53:58 PM CDT public static boolean checkPrime(int x)     {         for(int i = 2; i <= (int)Math.ceil(Math.sqrt(x)); i++ )         {                 if( x % i == 0)                 { return false; }         }         return true;     }