subject

You are an analyst at the Central Intelligence Agency (CIA). You are assigned the job of developing a program that will analyze PIN numbers that are used to encrypt sensitive data. The CIA uses a very specific set of rules for PINs to identify non-CIA operatives who attempt to access the sensitive data (these non-CIA operatives will try PINs that do not conform to CIA rules). The rules are complicated enough that the CIA has assigned you the job of developing a program to test whether a PIN meets their rules. CIA personnel will then use the program to make sure the PINs they select to protect data conform to the rules.

The rules that your program must use to determine if the password is valid are as follows:

1. The password must be an integer greater than or equal to 100,000 and less than 1,000,000
2. All the digits in the number have to be unique.
3. The sum of the digits must be a prime number.
4. The permutation of the left - most digit (n) and the smallest digit (k) must be odd - for example: in 645923, the left - most is 6 and the smallest digit is 2.

n! / (n - k)!
Where the ! denotes a factorial. For example, for the number 645923, the permutation with n = 6 and k = 2 is: 6 * 5 * 4 * 3 * 2 * 1 / (4 * 3 * 2 * 1) = 30. You will list all valid passwords. In addition, you will need to list the total number of valid passwords at the end.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 00:30
At an open or uncontrolled intersection, yield if a. your road is paved and the crossroad is not b. the cross road is paved and yours is not c. you have two or more passengers in your vehicle d. you did not yield in the last intersection
Answers: 1
question
Computers and Technology, 22.06.2019 19:10
What a backup plan that you have created in a event you encounter a situation
Answers: 2
question
Computers and Technology, 23.06.2019 07:30
Which option allows you to view slides on the full computer screen?
Answers: 1
question
Computers and Technology, 23.06.2019 23:30
Worth 50 points answer them bc i am not sure if i am wrong
Answers: 1
You know the right answer?
You are an analyst at the Central Intelligence Agency (CIA). You are assigned the job of developing...
Questions
question
Mathematics, 25.11.2019 22:31
question
Geography, 25.11.2019 22:31
Questions on the website: 13722360