View Code of Problem 31


import java.util.Scanner;

public class Main {
    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        while (sc.hasNext()){
            long k = sc.nextLong();
            long sum = 23 + 3 * 5 * 7 * (k - 1);
            System.out.println(sum);
        }
    }
}

Double click to view unformatted code.


Back to problem 31