This is mostly for school PUT IN TURBO MODE (it helps calculate some numbers) Press space to see the temp variable. Really really big numbers don't work, as scratch interprets the numbers as a round of the number, which is always divisible by 2. So don't try really big numbers.
Thanks to @8-BitExtras for the orginal project! I just added so that it says one is not prime or composite.