예제 #1
0
  /**
   * Initializes the {@link #sieve} with the maximum of {@link #max}
   *
   * @see Sieve#Sieve(int)
   */
  @Override
  public void prepare() {
    super.prepare();

    max = 500000;
    cnt = -1;

    sieve = new Sieve(max);
  }
예제 #2
0
 /**
  * Reads the names from a file into the {@link #names local array}.
  *
  * @see IO#readSortedStrings(String)
  */
 @Override
 public void prepare() {
   super.prepare();
   names = IO.readSortedStrings("data-files/5000names.txt");
 }