I would take a list of primes off the internet and a separate list of composite numbers. And make variables like this using those lists.
Prime = random([2,3,5,7…])
Composites = shuffle([4,6,8,…])[0..5]
Options = shuffle([prime]+composites)
Then mark correct if their answer is equal to the variable Prime.
Let me know if something doesn’t make sense
Is it possible to have Numbas randomly select say 6 number but restricting to just ONE being prime? I am trying to write a question ask student select the PRIME number from a list. Thanks.