I am struggling with this project as when I put in the code, I get this error:

```
PrimeDirective.java:19: error: cannot find symbol
if (number == prime) {
^
symbol: variable prime
location: class PrimeDirective
1 error
```

This my code by the way:

```
import java.util.ArrayList;
class PrimeDirective {
public boolean isPrime(int number) {
if (number == 2) {
return true;
} else if (number < 2) {
return false;
}
for (int i = 2; i < number; i++) {
if (number % i == 0) {
return false;
} else {
return true;
}
}
if (number == prime) {
return true;
} else {
return false;
}
}
public static void main(String[] args) {
PrimeDirective pd = new PrimeDirective();
int[] numbers = {6, 29, 28, 33, 11, 100, 101, 43, 89};
System.out.println(pd.isPrime(6));
}
}
```