The document explores the Ulam spiral, illustrating how visualizing prime numbers reveals underlying patterns, particularly focusing on non-prime numbers. It categorizes numbers based on their last digit and assigns various 'states' to them, leading to formulas for generating non-prime numbers through defined waves. The study concludes that evident diagonal patterns in the spiral are primarily formed by non-prime numbers, and prime numbers do not have a uniform distribution.