Choose your favorite famous computer scientist or computer science pioneer who was born in 1935 or earlier. They should have a Wikipedia page or other site that lists their birth year and tells how their accomplishments relate to computer science. You may choose the same as someone else but choosing someone new is encouraged.
Take a name they are commonly known by. This will most likely be their first and last name but it might include abbreviations or middle names if that is more common. For example, for Tony Hoare both Tony Hoare
and C. A. R. Hoare
would be acceptable.
All the characters in the name must be printable ASCII. Take the set of unique characters in the name (e.g. C. ARHoare
) and shift them up the printable ASCII scale by the birth year of your scientist, looping around from ~
to space. (Basically add the birth year modulo 95.) This will give you a (most likely) new set of printable ASCII characters.
For example, C. A. R. Hoare was born in 1934, so shifting every character in C. ARHoare
by 1934 (34 mod 95) characters gives ePBctj2$5(
.
This Stack Snippet will do all the shifting for you:
function go() {var name = document.getElementById("name").value;var year = parseInt(document.getElementById("year").value);var unique = {};for (var i = 0; i < name.length; i++) { unique[name.charAt(i)] = true; } var result = ''; for (var char in unique) { result += String.fromCharCode((char.charCodeAt(0) - 32 + year) % 95 + 32); } document.getElementById("result").value = result; }
Name: <input type="text" id="name" value="C. A. R. Hoare"><br>
Birth Year: <input type="text" id="year" value="1934"><br>
<button type="button" onclick="go()">Ok</button><br>
Result: <input type="text" id="result" readonly>
#Challenge
Using this set and only this set (no tabs, no newlines) of shifted printable ASCII characters, write a program that prints Hello, [name]!
to stdout or closest alternative, where [name]
is the same exact name you chose above and shifted to get your program characters. You may use multiple characters from the set or not use some at all. For example, the theoretical program PetBee($25
prints Hello, C. A. R. Hoare!
.
#Scoring
Your score is your code size in bytes times the number of unique characters in the name you choose. The lowest sore wins.