MAIN Home Schedule Rules Compile PROBLEMS Novice Veteran All |
Return to the Top of Page, 2000 Index Page, Novice Problem Set, or Veteran Problem Set.
Many times it is useful to know what divisors a number has. You have been requested to help determine divisors for a bunch of numbers. Common divisors that show up frequently are 2, 3, 4, 5, 6, 8, and 9. In fact, numbers that are divisible by at least 4 of these 7 divisors are considered easily divisible. Your job is to read a series of numbers and determine if they are easy.
InputInput will consist of one positive integer per line. You continue should processing until you encounter a 0.
OutputYou are to output each number and tell if it is easy (see the sample output below). Spacing is not significant. There must be at least one space between each number/word. Each line of input should generate one line of output.
Sample Input
24 17 30 36
Sample Output
24 is easy. 17 is not easy. 30 is easy. 36 is easy.
Return to the Top of Page, 2000 Index Page, Novice Problem Set, or Veteran Problem Set. Test Data 0
24 17 30 36 0
Return to the Top of Page, 2000 Index Page, Novice Problem Set, or Veteran Problem Set. Output for Test Data 0
24 is easy. 17 is not easy. 30 is easy. 36 is easy.
Return to the Top of Page, 2000 Index Page, Novice Problem Set, or Veteran Problem Set. Test Data 1
3 56 51 36 89 100 0
Return to the Top of Page, 2000 Index Page, Novice Problem Set, or Veteran Problem Set. Output for Test Data 1
3 is not easy. 56 is not easy. 51 is not easy. 36 is easy. 89 is not easy. 100 is not easy.
Return to the Top of Page, 2000 Index Page, Novice Problem Set, or Veteran Problem Set. Test Data 2
1 99 18 22 31 48 0
Return to the Top of Page, 2000 Index Page, Novice Problem Set, or Veteran Problem Set. Output for Test Data 2
1 is not easy. 99 is not easy. 18 is easy. 22 is not easy. 31 is not easy. 48 is easy.
Return to the Top of Page, 2000 Index Page, Novice Problem Set, or Veteran Problem Set. Test Data 3
91 93 81 48 64 28 96 0
Return to the Top of Page, 2000 Index Page, Novice Problem Set, or Veteran Problem Set. Output for Test Data 3
91 is not easy. 93 is not easy. 81 is not easy. 48 is easy. 64 is not easy. 28 is not easy. 96 is easy.
Return to the Top of Page, 2000 Index Page, Novice Problem Set, or Veteran Problem Set.
|
This page last updated Fri Feb 11 21:55:29 2000.