Skip to main content
added 91 characters in body
Source Link
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]]]]

enter image description here

All the same colour

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

All different colours

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

All the same colour

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

All different colours

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

enter image description here

Source Link
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]]]]