Coder Social home page Coder Social logo

wleng2001 / png-prime_number_generator Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 18 KB

It's simply program written in python, which generate prime numbers and save them to file. It starts in last position!

Python 100.00%
math python python3 prime-numbers prime-numbers-generation

png-prime_number_generator's Introduction

PNG-Prime_Number_Generator

It's simply program written in python, which generate prime numbers and save them to file. It starts in last position and check if the new version of app is available.

Last found number

I want to create ranking the biggest prime number found by the program. You can send your score to the e-mail: [email protected] with your nick and file, which certiy your score.

The ranking:

nr nick       score
1. Wleng2001  1026811
2. Wleng2001  2
3.
4.
5.
6.
7.
8.
9.
10.

Instalation

Linux device

You can clone it in linux devices:

git clone https://github.com/wleng2001/PNG-Prime_Number_Generator.git ./PNG

or download as a zip file on the github webpage.

Next you must check, that you have python downloaded. You can check it by writting the information in terminal:

python3 --version to check if you have python

You should get information similary to that:

Python 3.9.7

If you don't have downloaded python you can do it here or you can write the text in terminal:

sudo apt install python3

In next step you must install pip by:

sudo apt install python3-pip

When you install pip you must install gitpython library by typing the command in the terminal:

'sudo pip3 install pygithub'

Windows device

On the windows devices you can download zip file from github and unpack it. Next you must check, that you have python download. You can check it by writting the information in cmd (you can open it by writting cmd confirm it after clicking win):

python --version to check if you have python

You should get information similary to that:

Python 3.9.7

If you don't have downloaded python you can do it here.

if you don't have pip you can install it by writing the command in cmd:

curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py

after download you must typing the information in cmd:

python get-pip.py

Next you must write the command in the cmd to download pygithub library:

pip install pygithub

Usage

In linux devices you can run program by writing the command in terminal:

sudo python3 [file_path]/PNG/PNG-Prime_Number_Generator.py where [file_path] is file path to the PNG folder

In windows devices you can run program by clicking PNG-Prime_Number_Generator.py in file explorator. After run program first time you should see the information:

Check version...

If new version of app is available you get the information:

New version is available!
Read last prime number
Last prime number is: 2

Program starts looking for prime numbers. Found numbers are saves to file prime_numbers.txt. From the file it loads last found prime number. If you want to stop program in linux or windows you must click ctr + c or close the terminal.

png-prime_number_generator's People

Contributors

wleng2001 avatar

Watchers

 avatar

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.