View Code of Problem 31

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		while(scanner.hasNext()) {
			long k = scanner.nextLong();
			long n = 23 + (k - 1) * 3 * 5 * 7;
			System.out.println(n);
		}
	}
}

Double click to view unformatted code.


Back to problem 31