Enjoy fast, free delivery, exclusive deals, and award-winning movies & TV shows with Prime
Try Prime
and start saving today with fast, free delivery
Amazon Prime includes:
Fast, FREE Delivery is available to Prime members. To join, select "Try Amazon Prime and start saving today with Fast, FREE Delivery" below the Add to Cart button.
Amazon Prime members enjoy:- Cardmembers earn 5% Back at Amazon.com with a Prime Credit Card.
- Unlimited Free Two-Day Delivery
- Streaming of thousands of movies and TV shows with limited ads on Prime Video.
- A Kindle book to borrow for free each month - with no due dates
- Listen to over 2 million songs and hundreds of playlists
- Unlimited photo storage with anywhere access
Important: Your credit card will NOT be charged when you start your free trial or if you cancel during the trial period. If you're happy with Amazon Prime, do nothing. At the end of the free trial, your membership will automatically upgrade to a monthly membership.
Buy new:
$15.99$15.99
FREE delivery: Monday, Feb 19 on orders over $35.00 shipped by Amazon.
Ships from: Amazon.com Sold by: Amazon.com
Buy used: $10.00
Other Sellers on Amazon
& FREE Shipping
83% positive over last 12 months
& FREE Shipping
75% positive over last 12 months
+ $4.99 shipping
95% positive over last 12 months
Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required.
Read instantly on your browser with Kindle for Web.
Using your mobile phone camera - scan the code below and download the Kindle app.
In Code: A Mathematical Journey Paperback – December 30, 2002
Purchase options and add-ons
IN CODE is a heartwarming story that will have readers cheering Sarah on. Originally published in England and cowritten with her mathematician father, David Flannery, IN CODE is "a wonderfully moving story about the thrill of the mathematical chase" (Nature) and "a paean to intellectual adventure" (Times Educational Supplement). A memoir in mathematics, it is all about how a girl next door, nurtured by her family, moved from the simple math puzzles that were the staple of dinnertime conversation to prime numbers, the Sieve of Eratosthenes, Fermat's Little Theorem, googols-and finally into her breathtaking algorithm. Parallel with each step is a modest girl's own self-discovery-her values, her burning curiosity, the joy of persistence, and, above all, her love for her family.
About the Author
Sarah Flannery is a student at Cambridge University.
Excerpt. © Reprinted by permission. All rights reserved.
God made the natural numbers, all the rest is the work of Man.
-leopold kronecker
These were the first words that my father wrote on the board-a bit alarmingly, in German-on the evening of my first class at the Cork Institute of Technology, where he lectures in mathematics. He explained that Kronecker was a German mathematician who lived in the nineteenth century. Little did I know the role that the natural numbers (1, 2, 3, and so on . . .) would play in my life over the next two years.
Although, as I have already said, my father had often taught or helped with my school mathematics at home, this was the first time I had ever attended a formal lecture of his and seen him present work in an organized way to a group of people. This unusual evening class had come about as a result of a conversation he and I had the previous summer, which started something like, "Now that you have decided to do transition year, I must do some math with you." He continued, "I'd like to show you how some beautiful but reasonably elementary mathematics is applied, stuff that you wouldn't ordinarily come across in school."
Not knowing exactly what he had in mind, but not wishing to be collared and dragged to the kitchen blackboard at random times, I replied, "Dad, whatever you do, do something structured!" He promised to think carefully about the most effective but gentle way to give me a realistic glimpse into the mathematical world. Conscious of how much he would have appreciated it had someone done this for him thirty years ago, he felt obliged now to offer me the benefit of his
mathematical knowledge. "Of course, only if you are genuinely interested-I wouldn't force it on you."
Of course he wouldn't! But I was interested. So this is how the evening class was conceived, and this is how I was to be introduced to many wonderful mathematical ideas-accessible ideas I might never otherwise have encountered unless I chose to pursue mathematics as a career.
The title for the intended series of lectures, "Mathematical Excursions," was suggested by one of Dad's favorite books, Excursions in Calculus by Robert M. Young. Dad wanted not to present mathematics in a very rigorous fashion, but rather to explore "elementary" aspects of "higher" mathematics, and learn how these ideas find applications in different fields of study outside mathematics. The only prerequisite for these excursions-besides a thorough grounding in ordinary arithmetic and basic algebra-was interest. The primary aim of the course was that everybody take pleasure in sharing in the spirit of discovery.
The class, which met Tuesday evenings from seven to ten, consisted of eight people and ran for twenty-five nights. At fifteen and a half I was the youngest, though there were a couple others nearly as young. The rest were adults of various backgrounds: one was a secondary school mathematics teacher, one a chemistry graduate working in a medical laboratory, and others were computer scientists. All were there either because they had loved math at school but hadn't continued with it, or because they felt they hadn't properly appreciated the subject the first time around. This noncredit class, which was not part of any major, led to no award or certification at its completion and demanded no homework or study, may have seemed an ideal way of "getting back into math" in an easygoing, informal manner. Dad told us at the outset that there would be no pressure to perform, and that we need not fear being asked questions but we could ask them at any time. We were to feel free to say "any crazy thing" we liked, and not to be in the least afraid of appearing to make fools of ourselves. In fact, he told us, the more you are prepared to make a fool of yourself the more you'll learn. These reassurances convinced me that I was going to enjoy the next few Tuesday nights, even if I was not completely comfortable with the fact that the lecturer was my father. (Students always pity those who have to endure classes given by their parents, though I'm sure the situation is worse for the parent who is the teacher.)
The first excursions were to be in elementary number theory, with some aspects of cryptography as their final destination. Along the way we would see interesting sights, rich in their own right regardless of whether or not they had immediate application. Dad told us that when he was a student, number theory was regarded as the sole province of mathematicians, and those who devoted their lives to its study were considered the purest of the pure, so few were its perceived applications. It wasn't until the 1960s that engineers and scientists began to find applications of number theory, and by the end of the 1970s the discipline came of age, in the applied sense, with the advent of public key cryptography (very briefly, a modern form of cryptography which makes it possible to make public the method by which messages are enciphered, but-amazingly-without revealing how these enciphered messages are deciphered). Now the U.S. government was putting millions of dollars into the study of cryptography, a subject full of wonderful ideas about which, Dad said, he could hardly wait to tell us. Whereas many great number theorists had barely made a living in the past, their modern counterparts were now being actively sought out, so great was the demand for expertise in this emerging science of secrecy which relied so fundamentally on the branch of mathematics that the great mathematician Karl Friedrich Gauss (of whom more later) revered above
all else. It was he who said:
Mathematics is the queen of the sciences and number theory is the queen of mathematics.
As you might imagine, hearing all this filled me with curiosity and interest. Mom said it was like the Sleeping Beauty fairy tale, and she was prompted to write:
A princess was the Theory of Number,
whom no practical use did encumber,
'til Cryptography the prince
('tis all secrecy since),
did kiss her awake from her slumber.
I thought about those who had toiled away through the centuries at unraveling the mysteries of this subject, motivated by nothing more than a passionate desire to know. They could have hardly dreamt of the applications that some of their results would one day find. I wondered what it was they had discovered, and what they would think if they could see how some of these discoveries are now being used. I was eager to learn the subject and surmise for myself whether they would be surprised or not.
We were at once tantalized and put on our guard by the warning that number theory is notoriously deceptive. We were told that very soon we'd find ourselves asking simple questions, many of which others have asked before us through the ages, and some of which have still not been answered to this day.
- Print length341 pages
- LanguageEnglish
- Publication dateDecember 30, 2002
- Dimensions5.98 x 1.08 x 8.96 inches
- ISBN-101565123778
- ISBN-13978-1565123779
The Amazon Book Review
Book recommendations, author interviews, editors' picks, and more. Read it now
Customers who bought this item also bought
Product details
- Publisher : Algonquin Books (December 30, 2002)
- Language : English
- Paperback : 341 pages
- ISBN-10 : 1565123778
- ISBN-13 : 978-1565123779
- Item Weight : 1.17 pounds
- Dimensions : 5.98 x 1.08 x 8.96 inches
- Best Sellers Rank: #1,862,249 in Books (See Top 100 in Books)
- #325 in Discrete Mathematics (Books)
- #3,501 in Scientist Biographies
- #19,193 in Women's Biographies
- Customer Reviews:
Important information
To report an issue with this product or seller, click here.
About the author

Discover more of the author’s books, see similar authors, read author blogs and more
Customer reviews
Customer Reviews, including Product Star Ratings help customers to learn more about the product and decide whether it is the right product for them.
To calculate the overall star rating and percentage breakdown by star, we don’t use a simple average. Instead, our system considers things like how recent a review is and if the reviewer bought the item on Amazon. It also analyzed reviews to verify trustworthiness.
Learn more how customers reviews work on Amazon-
Top reviews
Top reviews from the United States
There was a problem filtering reviews right now. Please try again later.
Again, the book is great and I give it 5 stars. She explains complex math in a way that is both interesting and understandable. And even though I wanted more explanation about the main algorithm, at least all the math (including Mathematica code) is in the appendix. I guess this was done because the book's main focus is supposed to be the story. But don't let that deter you, this is a math book too. And while it is fundamental math topics, the math is not watered down. It is presented in a way in which you can understand and learn from it.
I highly recommend this book. It shows with some hard work and a basic math understanding, you can still contribute and discover things. I have been working with logarithmic spirals trying to find a use for them in cryptography. I had worked at it hard and realized after all the work I still don't have a proven solution. But reading this book by Ms. Flannery, you see that it is more about the journey.
I found the riddles and puzzles sprinkled throughout the book to be very entertaining, and I learned a few things about mathematics I didn't already know while reading. The problems each served to show that even things that seem difficult can be very simple if you change your way of thinking. For me, the toughest part of working through the puzzles was resisting the urge to peek at the answers in the back of the book.
What I most liked about this book is the positive role model it provides for aspiring young mathemticians, particularly girls (who have historically been underrepresented in the field.)
Overall, I highly recommend this book to everyone who has any appreciation for a good puzzle. This book would also be good for parents of young children and older children who are interested in mathematics.
Instead of giving the Reader's Digest version of the book, I will just say that she wrote the book in the same manner in which she approached her work, with a lot of vim and vigor. One can not but get excited with her as she felt her way through the mathematics and learn as she did, step by step the methods of cryptography. Not being one who is familiar with crytography per se but an amateurish afficionado of Number Theory, I found her explanations of the pertinent mathematics charming, refreshing and stimulating. Her intermittent puzzles were fun and illustrative. I recommend this for anyone wishing to inspire curious youngsters with mathematics.
The only quibble anyone could have with this book is the honesty and naivete exhibited by young Sarah, but then again, that is what is so attractive about this gem of a book that stands out amongst the jaded sea of mathematics book being cranked out by authors too cynical to be excited by the mathematical ideas they are writing about.
Be forewarned however, you must be atleast a bit amused by mathematics or you won't get the maximum pleasure out of this book.
She relates everything in the book, from the start of her early interest in math thanks to her father's frequent puzzle challenges, to her hitting on the idea of the winning project, to how she made it come to fruition. It's a good example of how parental involvement in education, and not just sending the kids to school, can help the kids immensely.
There's a good amount of instructional math in the book for those who would like to learn a little about the base knowledge she had to learn to work with cryptography. You can also read her project paper in the back of the book.
Top reviews from other countries
また、それが良いのかもしれません。最終頁までたどり着いたら、かなり数学が好きになりそう。自分の学生時代に巡り合っていたかった本ですね。
I qualify for both the above, I love maths and think Sarah has hit the level exactly right for a popular book of this kind. I was able to get all the flavour and terminology of the mathematical equipment she covered with not much more than a skim of the more technical chapters. Whereas her autobiographical chapters were also superbly written to communicate her own emotional involvement not only with her subject but also the helta-skelta jet-set world of exhibitions, competitions and presentations she has been ejected into by her school project that was slightly more successful than she expected!
I certainly intend to go back and re-read the more technical sections and take a browse at her web site. Although I have had a passing interest in cryptography for some time now, this book has achieved for me what none of the other books and magazine articles have: her description is the first I have read which has made me feel that I have really understood how public key systems actually work.
The flood of superlatives from handpicked sources was totally unwarranted because Miss Flannery invented nothing. I do not believe Mr Flannery is a cryptographer while also being a mathematician - the RSA cryptography was just a convenient slipstream to latch onto as a platform for the book - modelling his thoughts on Caeser shift ciphers however was a shock to the system where it happens.
Having written some powerful ciphers recently myself I tried contacting Mr Flannery to see if it might interest him but he did not do me the good manners of a reply. Other excellent writers like Simon Singh for instance (The Code Book) answered every email in the first 500 sent to him after the publication of his much superior book.
I understand Mr Flannery is now retired from Cork Institute of Technology - I think a brief email to that effect would have been appropriate. Bad manners are not becoming to academics especially.
For all that this book is still a very good read.

