Jump to content

keep me on track

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1
trin

trin

    Newbie

  • Members
  • Pip
  • 1 posts
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

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
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.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog