for f = (1:100) f isprime(f) j = all(f) endfprintf('%j',j)
This is what I have, I either get j as logical or if I change it to "fprintf('%f', f)" I get f = 100.
I need to print the prime numbers.
What am I doing wrong?
for loop
for f = (1:100) f isprime(f) j = all(f) endfprintf('%j',j)
Best Answer