I create a list of primes in table form... How do I generate and display the difference between the prime numbers in sequence?
In[1]:= Table[Prime[n], {n, 10}]
Out[1]= {2, 3, 5, 7, 11, 13, 17, 19, 23, 29}
expected output:
{1, 2, 2, 4, 2, 4, 2, 4, 6}
All help gratefully received.