using c i got to display all prime integers between 1 and 25000 stating if the integers are abundant or deficient,using 3 functions,and all abundant integers that are divisible by 7 and 5 at the same time with a range of 1 - 10000
keep me on track
Started by trin, Feb 20 2008 05:52 AM
1 reply to this topic
#1
Posted 20 February 2008 - 05:52 AM
|
|
|
#2
Posted 20 February 2008 - 08:58 AM
This is actually 4 problems, so resolve each one independently. First, get a list of primes in the range. Once that's working, test for being abundant. Once that's working, test for being deficient. Anything divisible by both 7 and 5 is divisible by 35.


Sign In
Create Account

Back to top









