Skip to main content
1 of 4

Iterator as Plot range parameter

I want to plot the function y=2^x for x = Table[ Prime[n], {n,20}]

How should I write the plot function?

list = Table[ Prime[n], {n,20}]

Plot [ y=2^x, Evaluate[list]]

Thank you for your time