The sieve of Sundaram: Difference between revisions
m
Minor correction to layout of code.
(New post.) |
m (Minor correction to layout of code.) |
||
Line 819:
import java.util.List;
public final class
public static void main(String[] args) {
Line 829:
System.out.println();
System.out.println("The 1_000_000th Sundaram prime is " + primes.get(1_000_000 - 1));
}
|