Skip to main content
1 of 2
Chris Degnen
  • 31.3k
  • 2
  • 56
  • 109

All the same colour

ListPlot[MapIndexed[{#2[[1]], #1} &, Prime[Range[25]]]]

All different colours

ListPlot[MapIndexed[List@{#2[[1]], #1} &, Prime[Range[25]]]]
Chris Degnen
  • 31.3k
  • 2
  • 56
  • 109