Skip to content

JonaxPlanta/PrimeNumbersAlgorithm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prime Numbers Algorithm

This is a simple program to show the prime numbers to a limit number.


Dependences

This is dependences to run the program:

Name Download Link
NodeJS https://nodejs.org/en/download/package-manager
TypeScript https://www.typescriptlang.org/download/

Installing

NodeJS

  1. Open the terminal

    • Windows
    Windows + R : "cmd" or "powershell"
    
    • Linux
    Ctrl + Alt + T
    
  2. Insert the following command

    cd <program-file-path>
    
  3. Then

    npm init -y
    

TypeScript

  1. Open the terminal

    • Windows
    Windows + R : "cmd" or "powershell"
    
    • Linux
    Ctrl + Alt + T
    
  2. Insert the following command

    cd <program-file-path>
    
  3. Then

    npm install -g typescript
    

How to run

  1. Open the terminal

    • Windows
    Windows + R : "cmd" or "powershell"
    
    • Linux
    Ctrl + Alt + T
    
  2. Insert the following command and run

    node <script-path>
    
  3. Insert the limit value and wait...

    =======================
    PRIME NUMBERS ALGORITHM
    =======================
    Enter the limit number: <...>
    

Releases

No releases published

Packages

No packages published