Skip to content

Latest commit

 

History

History
92 lines (68 loc) · 1.48 KB

README.md

File metadata and controls

92 lines (68 loc) · 1.48 KB

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: <...>