Skip to content

The Ulam Spiral is a graphical representation of prime numbers in a spiral pattern. This program generates the Ulam Spiral and displays it using Java's Swing library.

Notifications You must be signed in to change notification settings

KalbarczykDev/java-swing-ulam-spiral

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ulam Spiral

Simple Java Program generating an Ulam Spiral, a visualization of prime numbers in a spiral pattern. It uses Java Swing to create a graphical user interface (GUI) window for displaying the spiral. It was made for GUI class at PJAIT

Screenshot

UlamSpiral

Prerequisites

  • Java 21 or higher (LTS version recommended)

Usage

Cloning the Repository

bash git clone https://github.com/KalbarczykDev/java-swing-ulam-spiral.git cd java-swing-ulam-spiral/src

Building the Project

bash javac *.java

Running the application

bash java Main

  • Enter size of the spiral in prompt window.
  • Wait for output.

License

MIT

About

The Ulam Spiral is a graphical representation of prime numbers in a spiral pattern. This program generates the Ulam Spiral and displays it using Java's Swing library.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages