How can I make a POSIX script that will print all the prime numbers from 1 to 1000?Lots of thanks
Simple bash script to print prime numbers from 1 to 1000
bash;shell;posix
factor {2..1000} | awk 'NF==2{print $2}'