def is_prime(n): if n <= 1: return False return True def plot_primes(primes): plt.figure(figsize=(10, 6)) plt.plot(primes, 'bo', markersize=5) plt.title('Prime Numbers = 2,4,6,8,10') plt.xlabel('Index') plt.ylabel('Prime Numbers') plt.grid(True) limit = 100 primes = generate_primes(limit) plot_primes(primes)