Problem with printing values
<p>As Similar to previous issue I am unable to print value on the screen. I have tested the prime mark loop and It does produce correct figures but print statements are not printing value so I can not verify the code. The code is attached below. Few Reputed people guided me to use BigInteger but I have few issue in it so I will look into that as well.</p>

<p>Thanks in advance for all your help and assistance.</p>

<pre><code>package javaapplication1;

import java.util.Random;
import java.math.*;

public class DH {

    public static void main(String[] arg) {

        int q;
        int z = 10000;
        Random generator = new Random(0);
        q = generator.nextInt(50000);

        double sk1 = generator.nextDouble();
        double sk2 = generator.nextDouble();

        for (int p = generator.nextInt(z); p &lt; 50000; p++) {
            int j;
            for (j = 2; j &lt; p; j++) {
                int n = p % j;
                if (n == 0) {
                    break;
                }
            }

            if (p == j) {
                double a = Math.pow(q, sk1);
                double pk1 = a % p;

                double b = Math.pow(q, sk2);
                double pk2 = b % p;

                if (pk1 == pk2) {
                    System.out.println("true");
                    System.out.println(p);
                    System.out.println(q);
                    System.out.println(sk1);
                    System.out.println(sk2);
                    System.out.println(pk1);
                    System.out.println(pk2);
                    System.out.print("  " + i);
                }
            }
        }

    }
}
</code></pre>
