Search:

Type: Posts; User: JDreben

Search: Search took 0.82 seconds.

  1. Replies
    2
    Views
    493

    Re: Modulus with BigIntegers

    Got it! Silly mistake. I should have used compareTo instead of ==. My current issue is that I need to use BigIntegers in the conditions of the for loop, is that not allowed? Because my method seems...
  2. Replies
    2
    Views
    493

    Modulus with BigIntegers

    Hey, so I'm trying to make a method that checks if a BigInteger is prime, but I'm running into an issue in doing the modulus. Below is the whole method.

    public static boolean...
Results 1 to 2 of 2