Sieve of Eratosthenes Crash! NullPointerException

Hello,

You need to initialize the array before you use it.

Review the setup() and consider the order of the code that you are executing from the top down.

:)