This preview shows page 1. Sign up to view the full content.
Unformatted text preview: The vector must be the specified length. % % The isprime() function returns true if the number you give it is prime. % function primes = primeSpace(start, len) primes = ; temp = start; while length(primes) < len if isprime(temp) primes(end + 1) = temp; end temp = temp + 1; end end...
View Full Document
This note was uploaded on 10/22/2009 for the course CS 1371 taught by Professor Stallworth during the Fall '08 term at Georgia Institute of Technology.
- Fall '08