https://github.com/shirommakkad/imagetoprime
Turns an Image into a Prime Number
https://github.com/shirommakkad/imagetoprime
Last synced: 3 months ago
JSON representation
Turns an Image into a Prime Number
- Host: GitHub
- URL: https://github.com/shirommakkad/imagetoprime
- Owner: ShiromMakkad
- Created: 2018-02-03T23:12:31.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-24T15:36:23.000Z (over 6 years ago)
- Last Synced: 2025-01-15T07:53:24.832Z (5 months ago)
- Language: Java
- Size: 271 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ImageToPrime
Turns an Image into a Prime Number## Inspiration
I was inspired by a numberphile video on the Trinity Hall Prime which I've linked to below.
### The Trinity Hall Prime - Numberphile
[](https://www.youtube.com/watch?v=fQQ8IiTWHhg)The prime shown is an image of the crest of Trinity Hall, the college that it is displayed at. The prime number shown has 1350 digits corresponding with the founding of the college. This program will take in any image and output a prime that looks like it.
## Results
### My Name
#### Input
#### Output
This image has 2000 digits, which corresponds to my birth year.
### School Logo
#### Input
#### Output
This image has 1910 digits, corresponding with the founding date of my school.
### New Trinity Hall Prime
#### Input
#### Output
## Usage
There are three options when creating a prime:
#### Option 1: Integrate Prime Into Image
This will create a Prime number out of the image you gave. When finding a prime number, not all the digits at the end will perfectly match with the image. Sometimes that overlaps into the image and you lose some of the content.
#### Option 2: Appened Prime Under Image
This appends a line under the image and all of the modifications on the number happen on that line
#### Option 3: Exact Area
This creates a prime with the exact number of digits you specify in the area box. This may leave a partial line at the end.## Installation
Just download the executable jar from the repository, and you're all set!