Hi thereiam new member in this website and my first topicI have question in prime spiralhere is question:Write a program that takes one or more values for N on the command linewhere N is always an odd number in the range 0.
Project Euler: Problem 58 – Spiral primes By Bradley Mize June 10, 2013 March 18, 2014 Project Euler. Problem 58: Starting with 1 and spiralling anticlockwise in the following way, a square spiral with side length 7 is formed. This is another problem from the PE website that I have tried a few times unsuccessfully and I haven't been able to get my head round the logic until now. The basic idea here is to compute the ratio of primes to total number on the diagonals of this spiral structure.