This is a simple program to show the prime numbers to a limit number.
This is dependences to run the program:
Name | Download Link |
---|---|
NodeJS | https://nodejs.org/en/download/package-manager |
TypeScript | https://www.typescriptlang.org/download/ |
-
Open the terminal
- Windows
Windows + R : "cmd" or "powershell"
- Linux
Ctrl + Alt + T
-
Insert the following command
cd <program-file-path>
-
Then
npm init -y
-
Open the terminal
- Windows
Windows + R : "cmd" or "powershell"
- Linux
Ctrl + Alt + T
-
Insert the following command
cd <program-file-path>
-
Then
npm install -g typescript
-
Open the terminal
- Windows
Windows + R : "cmd" or "powershell"
- Linux
Ctrl + Alt + T
-
Insert the following command and run
node <script-path>
-
Insert the limit value and wait...
======================= PRIME NUMBERS ALGORITHM ======================= Enter the limit number: <...>