// 1 HARMONIE import java.lang.Math; public class coma1 { public static void main(String[] args){ bereken(4*Math.PI); } public static void bereken(double k){ int i = 1; double sum = 1; while(sum 100) { primes = new int[max/2]; } else { primes = new int[max]; } primes[0] = 2; primes[1] = 3; for(i=2,j=5; j < max ; j+=2) { if(j % 3 != 0) { primes[i++] = j; } } for(i=2, divisor=5, offset = primes.length; divisor < sqrt ; ) { j = i*i; tmp = new int[offset]; offset = j; System.arraycopy(primes,0,tmp,0,j); while( j < tmp.length) { k = primes[j++]; if(k==0) { break; } if(k % divisor != 0) { tmp[offset++] = k; } } primes = null; primes = tmp; tmp = null; divisor = primes[i++]; } for(int z = 0; z