MATLAB: How to print the first 100 primes including 1 as a vector

primes

i need to print vectors containing all prime numbers less than 100, including 1 as 1 is usually not shown as a prime number in matlab. Thanks

Best Answer

p = [1 primes(100)]
p =
Columns 1 through 19
1 2 3 5 7 11 13 17 19 23 29 31 37 41 43 47 53 59 61
Columns 20 through 26
67 71 73 79 83 89 97