Main.java:2: error: class Primes2 is public, should be declared in a file named Primes2.java
public class Primes2 {
^
Main.java:11: error: modifier static not allowed here
static class MySort implements Comparator {
^
Note: Main.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
2 errors