Write a Marie subroutine that take a range of numbers and prints the prime numbers of this range.

I'll start by drawing your attention to the site rules, in particular: "provide evidence of having done some work yourself if posting questions from school or work assignments"

Which leads me nicely onto: post the code you have already and let us know where exactly you are having problems. Then someone may be able to help you with this. Nobody is going to just do your assignment for you...

commented: +1 for sharing how things work. +15
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.