> For the complete documentation index, see [llms.txt](https://v-vishwanath.gitbook.io/kiraak/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://v-vishwanath.gitbook.io/kiraak/examples/prime-number.md).

# Prime number

Isme bhi n test cases aate. Ab har test case me ek number input aata, aur hamareku ye bataana hai ki woh number prime number hai ya nai.

{% code title="input" %}

```
5
234
432
467
241
513
```

{% endcode %}

{% code title="output" %}

```
galat
galat
sahi
sahi
galat
```

{% endcode %}

Iska code kuch aisa rehta:

```
isPrime function boletoh n lega aur {
    agar n 2 se chota hai toh sahi dega

    ab i ko 2 se n - 1 tak chalate hue {
        agar n % i 0 hai toh galat dega
    }

    sahi dega
}

testCases me input aata
ab i ko 1 se testCases tak chalate hue {
    n me input aata

    primeHai boletoh isPrime ko n deke chala
    screen pe primeHai + '\n' dikha
}

```
