import java.io.IOException;
import java.lang.Thread;

class FunThread extends Thread {
    long minPrime;
    FunThread(long minPrime) {
        this.minPrime = minPrime;
    }
    public void run() {
        this.minPrime += 1;
        try {
            sleep(1);
        } catch (InterruptedException e) {}
    }
}

public class testThread {
    public static void main(String[] args) throws IOException, InterruptedException {
        for(int i=0; i<=1000000; i++){
            FunThread p = new FunThread(143);
            p.start();
        }
    }
}
