All pastes #960570 Raw Edit

Mine

public text v1 · immutable
#960570 ·published 2008-03-28 07:28 UTC
rendered paste body
/*
 * PrimeClass.java
 *
 * Created on 28 Μάρτιος 2008, 8:49 πμ
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */
import javax.swing.JOptionPane;
import java.util.Calendar;
/**
 *
 * @author students
 */
 
public class PrimeClass {
    
    /** Creates a new instance of PrimeClass */
    public PrimeClass() {
    }
    public static void main(String[]args) {
             
             boolean findIt=true;
          String in=JOptionPane.showInputDialog(null, "Dwse ton prwto arithmo: ");     
          int x=Integer.parseInt(in); 
             for(int n=2; n<x; n++)
	         {
                      int remainder=x%n;
                      if (remainder==0){
                          findIt=false;
                          break;
                      	}
                  }
            if (findIt)
                System.out.println("Protos");
            else 
                System.out.println("Oxi Protos");
              }
    
    
}