Question: Write a program that prints the result of A + B + C, where these are defined as follows: A = count of all numbers,

Write a program that prints the result of A + B + C, where these are defined as follows:

A = count of all numbers, between 1 and N (inclusive), that are NOT divisible by 7

B = count of all prime numbers between 1 and N (inclusive)

C = count of all numbers, between 1 and N (inclusive), that are divisible by ALL of the values represented by the letters of your unique word

Here N is your unique 5 digit number.

As usual, a=1, b=2, c=3, ..., z=26, and so if your word is "decaded", then C should be the count of all numbers, between 1 and N, divisible by ALL the numbers: 4,5,3, and 1 (60 is such a number, in this case)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!