Is my name a prime number?

Ever wondered about that? Well I did, while reading The Curious Incident of the Dog in the Night-Time by Mark Haddon (brilliant book, I strongly recommend it 👍👌).

So how does it all work? I'll let Christopher (the protagonist) explain it in his own words:

...if you see someone's name and you give each letter a value from 1 to 26 (a = 1, b = 2, etc.) and you add the numbers up in your head and you find that it makes a prime number, like Jesus Christ (151), or Scooby-Doo (113), or Sherlock Holmes (163), or Doctor Watson (167).

So naturally, being a lover of prime numbers, I want to know if my name is a prime number as well. And being a lazy-ass, I decided to write a little app to do it instead of having to count it myself. And since it's already written, why not share it?

Note that this only works with names with English alphabets, so characters with accents won't work. Apologies!

p.s. Let me know of any issues at [email protected].