PolymathREU-Walking-to-infi.../java/insert_digit_anywhere_prime/Main.java
2020-07-20 02:36:01 -04:00

20 lines
540 B
Java

package insert_digit_anywhere;
import java.util.ArrayList;
public class Main
{
public static void main(String[] args)
{
Util.init();
/* By changing the args[0] we can modify which prime we want to be the
* first in the row. Same for the number of iteration.
*/
Tree tree = new Tree(Integer.parseInt(args[0]), new ArrayList<Long>());
for (int i = 0; i < Integer.parseInt(args[1]); i++) {
tree.step();
Util.printList(tree.longestPath());
}
}
}