# Numbers

## getPrimeFactors()

**Description:** This function will return an array of all the prime numbers, that when multiplied equal to the original number passed into the function.\
**Parameters**: `getPrimeFactors(number)`\
**Output Type:** Array\
**Code Snippet:**

```javascript
const { getPrimeFactors, getPrimeFactorsAsync } = require('vuub')

function SynchronousUsage () {

    var primeFactorResult = getPrimeFactors(250)
    console.log(primeFactorResult) // Output: [ 2, 5, 5, 5 ]

}

async function AsynchronousUsage () {
    
    var primeFactorResult = await getPrimeFactorsAsync(250)
    console.log(primeFactorResult) // Output: [ 2, 5, 5, 5 ]
    
}
```

## isEvenNumber()

**Description:** This function will return `true` or `false`, based on if the number provided is an even number.\
**Parameters:** `isEvenNumber(number)`\
**Output Type:** Boolean\
**Code Snippet:**

```javascript
const { isEvenNumber, isEvenNumberAsync } = require('vuub')

function SynchronousUsage () {

    var evenNumberResult = isEvenNumber(4)
    var notEvenNumberResult = isEvenNumber(7)

    console.log(evenNumberResult) // Output: true
    console.log(notEvenNumberResult) // Output: false

}

async function AsynchronousUsage () {
    
    var evenNumberResult = await isEvenNumberAsync(4)
    var notEvenNumberResult = await isEvenNumberAsync(7)
    
    console.log(evenNumberResult) // Output: true
    console.log(notEvenNumberResult) // Output: false
    
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://studentzone.gitbook.io/vuub/the-guide/numbers.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
