iam new member in this website and my first topic
I have question in prime spiral
here is question :
Write a JAVA program that takes one or more values for N on the command line
where N is always an odd number in the range 0 < N < 100.
For each N, your program must determine the largest sum of primes along any
diagonal straight line in a grid of size NxN. Write the answer on a separate line,
in the form:
where N is the grid size, S is the largest sum. For example, given 3 and 5 on the
command line, your program should print:
also it has two files "spiral.in" which contain input (2,3,5),and "spiral.out" (49,10)
how I can write code for this question ???
plzz help me