PROGRAMMING:Write a function to determine whether a positive integer is a prime
Write a function isprime (int n) to determine whether a positive integer n is a prime number. If n is a prime number, the value of the function returns 1, otherwise it returns 0. Call the function with the main() function. Run the program and input 17 and 38 respectively to view the running results.
###Input format:
Enter any positive integer n.
###Output format:
If n is prime, output 1, otherwise output 0.
###Input example:
```in
seventeen
```
###Output example:
```out
one
```
###Input example:
```in
thirty-eight
```
###Output example:
```out
0
```
answer:If there is no answer, please comment
###Input format:
Enter any positive integer n.
###Output format:
If n is prime, output 1, otherwise output 0.
###Input example:
```in
seventeen
```
###Output example:
```out
one
```
###Input example:
```in
thirty-eight
```
###Output example:
```out
0
```
answer:If there is no answer, please comment