Hi Im trying to write a code where the user will be asked to enter number and if the number is prime the answer will be: (number) is prime. When the number isn't a prime the answer will be: (number) is not prime. It also should be in while condition so the user can enter new number after the program checks the first one.

I have a working code in C for this, which I'm trying to translate.

```
#include <stdio.h>
int main()
{
int n, i, flag=0;
printf("Enter a positive integer: ");
scanf("%d",&n);
for(i=2;i<=n/2;++i)
{
if(n%i==0)
{
flag=1;
break;
}
}
if (flag==0)
printf("%d is a prime number.",n);
else
printf("%d is not a prime number.",n);
return 0;
}
```

My TI-BASIC code looks so far like this:

```
:ClrHome
:Disp "ENTER NUMBER", N
:0->F
:For(I,2,N/2,1)
:fpart (A/B)*B->I
:If I=0
:N=1
:End
:If F=0
:Then
:Disp "IT IS NOT PRIME"
:Else
:Disp "IT IS PRIME"
:End
```

Im kinda stuck here.

Can anybody help me?