i wrote a program to generate prime numbers in the interval 1-7000 and that determines which of the given sub-intervals(1-1000, 1001-2000, 2001-3000, 3001-4000, 4001-5000, 5001-6000, 6001-7000) contains the most prime numbers.
my program is already producing the output as per sub-interval.
having determined all of the sub-intervals, i need to draw a bar-chart showing the number of primes in each interval.
the graph has to be drawn to scale.
please help: