Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jonaxplanta/primenumbersalgorithm

A simple Prime Number Finder Algorith using TypeScript.
https://github.com/jonaxplanta/primenumbersalgorithm

algorithm mathematics nodejs prime-numbers terminal-based training typescript

Last synced: about 1 month ago
JSON representation

A simple Prime Number Finder Algorith using TypeScript.

Awesome Lists containing this project

README

        

### 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
```

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
```

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
```

3. Insert the *limit value* and wait...
```
=======================
PRIME NUMBERS ALGORITHM
=======================
Enter the limit number: <...>
```