1 / 95

IS ‘N’ A PRIME NUMBER ?

IS ‘N’ A PRIME NUMBER ?. DONE BY: ISHTIAQUE KHAN 1757, CSEDU. THEORY ONE. WHAT IS A PRIME NUMBER ? A Prime Number is any integral number that has exactly 2 divisors. THEORY TWO. IS 0 A PRIME NUMBER? No, 0 is not a Prime Number. IS 1 A PRIME NUMBER? No, 1 is not a Prime Number.

jens
Télécharger la présentation

IS ‘N’ A PRIME NUMBER ?

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. IS ‘N’ A PRIME NUMBER ? DONE BY: ISHTIAQUE KHAN 1757, CSEDU

  2. THEORY ONE • WHAT IS A PRIME NUMBER ? A Prime Number is any integral number that has exactly 2 divisors.

  3. THEORY TWO • IS 0 A PRIME NUMBER? No, 0 is not a Prime Number. • IS 1 A PRIME NUMBER? No, 1 is not a Prime Number. • IS 2 A PRIME NUMBER? Yes, 2 is a Prime Number.

  4. THEORY THREE • IF A POSITIVE INTEGER N IS NOT DIVISIBLE BY ANY NUMBER, X, IN THE RANGE: 2 <= X <= , THEN N IS NOT DIVISIBLE BY ANY NUMBER, X, IN THE RANGE: < X < N

  5. LET N BE 37

  6. LET N BE 37

  7. LET N BE 37 LET X BE 2

  8. THEREFORE N IS NOT DIVISIBLE BY 2 OR ANY OTHER MULTIPLE OF 2

  9. LET N BE 37

  10. LET N BE 37

  11. LET N BE 37

  12. LET N BE 37

  13. LET N BE 37

  14. LET N BE 37

  15. LET N BE 37

  16. LET N BE 37

  17. LET N BE 37

  18. LET N BE 37

  19. LET N BE 37

  20. LET N BE 37

  21. LET N BE 37

  22. LET N BE 37

  23. LET N BE 37

  24. LET N BE 37

  25. LET N BE 37

  26. LET N BE 37

  27. LET N BE 37 LET X BE 3

  28. THEREFORE N IS NOT DIVISIBLE BY 3 OR ANY OTHER MULTIPLE OF 3

  29. LET N BE 37

  30. LET N BE 37

  31. LET N BE 37

  32. LET N BE 37

  33. LET N BE 37

  34. LET N BE 37

  35. LET N BE 37

  36. LET N BE 37

  37. LET N BE 37

  38. LET N BE 37

  39. LET N BE 37

  40. LET N BE 37

  41. LET N BE 37 LET X BE 4 BUT 4 IS ALREADY CHECKED

  42. LET N BE 37 LET X BE 5

  43. THEREFORE N IS NOT DIVISIBLE BY 5 OR ANY OTHER MULTIPLE OF 5

  44. LET N BE 37

  45. LET N BE 37

  46. LET N BE 37

  47. LET N BE 37

  48. LET N BE 37

  49. LET N BE 37

  50. LET N BE 37

More Related