https://github.com/kalbarczykdev/java-swing-ulam-spiral
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.
https://github.com/kalbarczykdev/java-swing-ulam-spiral
beginer-friendly beginer-projects beginner java java-awt-swing java-swing turorial ulam-spiral ulam-spiral-generator youtube
Last synced: 6 months ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/kalbarczykdev/java-swing-ulam-spiral
- Owner: KalbarczykDev
- Created: 2023-06-25T11:13:46.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-08-10T18:51:56.000Z (6 months ago)
- Last Synced: 2025-08-10T20:38:43.767Z (6 months ago)
- Topics: beginer-friendly, beginer-projects, beginner, java, java-awt-swing, java-swing, turorial, ulam-spiral, ulam-spiral-generator, youtube
- Language: Java
- Homepage:
- Size: 69.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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

## 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](https://choosealicense.com/licenses/mit/)