q5.wap tofind out the sum of all prime numbers between 1 and n by using a user defined function (say isprime) to be used for prime number testing, where n is a value supplied by the user.
python coding for y, you will also display a “bar” of ‘X’ characters to represent the number. For example, the prime number 2 would be represented as “X 2”.