1. Limited time only! Sign up for a free 30min personal tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Homework Help: Algorithm to find out whether an input is a prime number or not

  1. Nov 16, 2009 #1
    1. The problem statement, all variables and given/known data

    1- write an algorithm to find out whether an input is a prime number
    or not.
    2-write aa program to compute square root by newton method
    3-write an algorithm to show an input is perfect or not.
    4-
    2. Relevant equations



    3. The attempt at a solution
     
  2. jcsd
  3. Nov 16, 2009 #2

    Mark44

    Staff: Mentor

    Re: Algorithm

    Before getting any help on this forum, you need to show what you have tried to do.
     
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook