Giter Club home page Giter Club logo

image-to-prime's Introduction

A command line utility that converts an image into an ascii-art prime number. It uses PIL for image processing, numpy when creating the acsii art, and sympy for primality testing.

For example, here is the Github logo as a 2450 digit prime number:

7777777777777777777777777398000000000000008937777777777777777777777777
7777777777777777777730000000000000000000000000000377777777777777777777
7777777777777777700000000000000000000000000000000000077777777777777777
7777777777777700000000000000000000000000000000000000000077777777777777
7777777777720000000000000000000000000000000000000000000000277777777777
7777777779000000000000000000000000000000000000000000000000009777777777
7777777700000000000000000000000000000000000000000000000000000077777777
7777770000000000877790000000000000000000000000000677710000000000777777
7777700000000000777777774000000594444260000006777777770000000000077777
7777000000000000777777777777777777777777777777777777772000000000007777
7770000000000000777777777777777777777777777777777777775000000000000777
7700000000000000777777777777777777777777777777777777770000000000000077
7500000000000004777777777777777777777777777777777777777000000000000057
7000000000000077777777777777777777777777777777777777777700000000000007
9000000000000777777777777777777777777777777777777777777770000000000009
0000000000000777777777777777777777777777777777777777777770000000000000
0000000000000777777777777777777777777777777777777777777770000000000000
0000000000000777777777777777777777777777777777777777777770000000000000
0000000000000777777777777777777777777777777777777777777770000000000000
0000000000000177777777777777777777777777777777777777777770000000000000
9000000000000077777777777777777777777777777777777777777700000000000009
7000000000000007777777777777777777777777777777777777777000000000000007
7500000000000000177777777777777777777777777777777777770000000000000057
7700000000000000009777777777777777777777777777777773000000000000000077
7770000000774000000000477777777777777777777777710000000000000000000777
7777000000077770000000000000777777777777770000000000000000000000007777
7777700000000777700000000007777777777777777000000000000000000000077777
7777770000000077777000000077777777777777777700000000000000000000777777
7777777700000007777777777777777777777777777700000000000000000077777777
7777777779000000077777777777777777777777777700000000000000009777777777
7777777777720000000000000077777777777777777700000000000000277777777777
7777777777777700000000000077777777777777777700000000000077777777777777
7777777777777777700000000077777777777777777700000000077777777777777777
7777777777777777777710000077777777777777777700000377777777777777777777
7777777777777777777777777777777777777777777777777777777777777777779021

image-to-prime's People

Contributors

gavin-lb avatar

Stargazers

Ubuntufanboy avatar

Watchers

 avatar

image-to-prime's Issues

This isnt an issue. I just wanted to let you know how amazing this project is

There is a js alternative that does not run on machine and I tried to get it working for hours. I figured i'd just look for some alternatives. I found this repo and I was super skeptical at first but once I tried it out... I was amazed. Not only was I able to use it, but It was written well enough for me to modify the source code to my liking. I wish I could this repo 100 stars because I would.

THANK YOU FOR SUCH AN AMAZING REPO

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.