🚀 Launch Week Day 5:Introducing Immutable Scans.Learn More →
Socket
Book a DemoInstallSign in
Socket

laptudirm.com/x/itp

Package Overview
Dependencies
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

laptudirm.com/x/itp

Go Modules
Version
v0.3.0
Version published
Created
Source

itp - Beautiful Prime Numbers from Images

itp is a command line tool to generate large prime numbers which look like any arbitrary image.

Installation and Usage

go install laptudirm.com/x/itp@latest
itp [image file]

Working

itp finds primes which look similar to an image using the following steps:

  • step 1: Convert the image into a number. Brightness chart is "7772299408".
  • step 2: If last digit is even or 5 change it, otherwise number can't be a prime.
  • step 3: If first digit is 0 change it. No redundant leading zeros allowed
  • step 4: Check if number is prime. If it is a prime, print it and exit.
  • step 5: If number is not prime, switch one of the digits with a similar one.
  • step 6: Goto step 4.

References

FAQs

Package last updated on 28 Jan 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts