Skip to content

skazanskiy3/SecretAdditive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SecretAdditive

You are given a function 'secret()' that accepts a single integer parameter and returns an integer. In your favorite programming language, write a command-line program that takes one command-line argument (a number) and determines if the secret() function is additive [secret(x+y) = secret(x) + secret(y)], for all combinations x and y, where x and y are all prime numbers less than the number passed via the command-line argument.

Dependecies

https://www.python.org/downloads/

Running the Command Line Program

Built on Python 3.5.2

To run the command line program:

$ python3 secret.py

To update secret function, see line 13 in secret.py

To run tests:

$ python3 secret_unit_test.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages