@(n)primes(2^n)(1:n)' ans(10)
Standard input is empty
ans = @(n) primes (2 ^ n) (1:n)' ans = 2 3 5 7 11 13 17 19 23 29
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!