<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-9182705499898252496.post8215701883275556458..comments</id><updated>2011-05-01T16:50:29.675-04:00</updated><category term='web'/><category term='bugs'/><category term='books'/><category term='interesting'/><category term='dotted-tail'/><category term='fermat'/><category term='pmd'/><category term='practice'/><category term='carroll'/><category term='css'/><category term='perfect numbers'/><category term='probability'/><category term='c++'/><category term='float'/><category term='bias'/><category term='integral'/><category term='simulation'/><category term='scheme'/><category term='halloween'/><category term='table'/><category term='snippets'/><category term='reading'/><category term='visualization'/><category term='big-o'/><category term='threads'/><category term='dvorak'/><category term='java'/><category term='double'/><category term='logic'/><category term='security'/><category term='fractals'/><category term='schneier'/><category term='coin toss'/><category term='links'/><category term='fibonacci'/><category term='misc'/><category term='c'/><category term='geometry'/><category term='pair programming'/><category term='algebra'/><category term='goldbach'/><category term='html'/><category term='vectors'/><category term='puzzles'/><category term='qwerty'/><category term='mersenne'/><category term='statistics'/><category term='testing'/><category term='chess'/><category term='crypto'/><category term='24'/><category term='horner'/><category term='randomness'/><category term='statitstics'/><category term='curiosity'/><category term='answers'/><category term='education'/><category term='technology'/><category term='blog spam'/><category term='benford'/><category term='cout'/><category term='pi'/><category term='lists'/><category term='conway'/><category term='map'/><category term='solutions'/><category term='data visualization'/><category term='unsolved'/><category term='python'/><category term='trees'/><category term='blowfish'/><category term='windows'/><category term='sicp'/><category term='productivity'/><category term='learning'/><category term='usability'/><category term='science'/><category term='gauss'/><category term='golden ratio'/><category term='math'/><category term='dodgson'/><category term='programming'/><category term='experience'/><category term='calculus'/><category term='CSV'/><category term='precision'/><category term='simpson'/><category term='letter frequency'/><category term='hints'/><category term='netbeans'/><category term='proof'/><category term='time'/><category term='sequences'/><category term='pascal'/><category term='primes'/><category term='captcha'/><category term='hello world'/><category term='data structures'/><category term='matrix'/><category term='euler'/><category term='exercises'/><category term='languages'/><category term='miller-rabin'/><category term='quotes'/><category term='gambling'/><category term='chaos'/><category term='numbers'/><category term='equals'/><category term='questions'/><category term='sets'/><title type='text'>Comments on Bill the Lizard: SICP Exercise 1.28: The Miller-Rabin test</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.billthelizard.com/feeds/8215701883275556458/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9182705499898252496/8215701883275556458/comments/default'/><link rel='alternate' type='text/html' href='http://www.billthelizard.com/2010/03/sicp-exercise-128-miller-rabin-test.html'/><author><name>Bill the Lizard</name><uri>http://www.blogger.com/profile/09810099093752485841</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_PnLYRqe0k9g/SKywgF43rhI/AAAAAAAAAAQ/0l6VoF8jG0M/S220/lizard-icon.jpeg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>8</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-9182705499898252496.post-5781494088563339361</id><published>2010-04-25T15:22:16.912-04:00</published><updated>2010-04-25T15:22:16.912-04:00</updated><title type='text'>Ramakrishnan VU3RDD,
Yes, it absolutely would retu...</title><content type='html'>Ramakrishnan VU3RDD,&lt;br /&gt;Yes, it absolutely would return a false positive in that case.  To see it fail, just replace the call to the random number generator in last line of the code listing with the value 1:&lt;br /&gt;&lt;br /&gt;(try-it 1))&lt;br /&gt;&lt;br /&gt;I&amp;#39;ve fixed the code listing so it now generates random numbers in the range 2 to (n-1).&lt;br /&gt;&lt;br /&gt;Nice catch, and thanks a lot for reading!</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9182705499898252496/8215701883275556458/comments/default/5781494088563339361'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9182705499898252496/8215701883275556458/comments/default/5781494088563339361'/><link rel='alternate' type='text/html' href='http://www.billthelizard.com/2010/03/sicp-exercise-128-miller-rabin-test.html?showComment=1272223336912#c5781494088563339361' title=''/><author><name>Bill the Lizard</name><uri>http://www.blogger.com/profile/09810099093752485841</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_PnLYRqe0k9g/SKywgF43rhI/AAAAAAAAAAQ/0l6VoF8jG0M/S220/lizard-icon.jpeg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.billthelizard.com/2010/03/sicp-exercise-128-miller-rabin-test.html' ref='tag:blogger.com,1999:blog-9182705499898252496.post-8215701883275556458' source='http://www.blogger.com/feeds/9182705499898252496/posts/default/8215701883275556458' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-743262253'/></entry><entry><id>tag:blogger.com,1999:blog-9182705499898252496.post-5539169117226551296</id><published>2010-04-25T11:25:57.851-04:00</published><updated>2010-04-25T11:25:57.851-04:00</updated><title type='text'>Thanks for the nice discussions on sicp. I am also...</title><content type='html'>Thanks for the nice discussions on sicp. I am also working through the book and it is very informative to look at the way others have done the exercises.&lt;br /&gt;&lt;br /&gt;If the rand-integer generates 0, then base becomes 1. In that case, wouldn&amp;#39;t the algorithm give false positive?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9182705499898252496/8215701883275556458/comments/default/5539169117226551296'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9182705499898252496/8215701883275556458/comments/default/5539169117226551296'/><link rel='alternate' type='text/html' href='http://www.billthelizard.com/2010/03/sicp-exercise-128-miller-rabin-test.html?showComment=1272209157851#c5539169117226551296' title=''/><author><name>Ramakrishnan VU3RDD</name><uri>http://www.blogger.com/profile/17889890890960319555</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.billthelizard.com/2010/03/sicp-exercise-128-miller-rabin-test.html' ref='tag:blogger.com,1999:blog-9182705499898252496.post-8215701883275556458' source='http://www.blogger.com/feeds/9182705499898252496/posts/default/8215701883275556458' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-580247342'/></entry><entry><id>tag:blogger.com,1999:blog-9182705499898252496.post-2225335833206369245</id><published>2010-04-07T17:52:55.211-04:00</published><updated>2010-04-07T17:52:55.211-04:00</updated><title type='text'>Thanks Yonatan, I took your suggestion and added t...</title><content type='html'>Thanks Yonatan, I took your suggestion and added the new version of fast-prime? to this post.&lt;br /&gt;&lt;br /&gt;Thanks also for telling me about your class.  It&amp;#39;s good to hear that someone is getting some use out of these notes.  I&amp;#39;ve been pretty busy with a new job, but I&amp;#39;m almost done with my notes for the next lecture and section of the text.  I should have those posted soon, and some new exercise solutions to follow.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9182705499898252496/8215701883275556458/comments/default/2225335833206369245'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9182705499898252496/8215701883275556458/comments/default/2225335833206369245'/><link rel='alternate' type='text/html' href='http://www.billthelizard.com/2010/03/sicp-exercise-128-miller-rabin-test.html?showComment=1270677175211#c2225335833206369245' title=''/><author><name>Bill the Lizard</name><uri>http://www.blogger.com/profile/09810099093752485841</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_PnLYRqe0k9g/SKywgF43rhI/AAAAAAAAAAQ/0l6VoF8jG0M/S220/lizard-icon.jpeg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.billthelizard.com/2010/03/sicp-exercise-128-miller-rabin-test.html' ref='tag:blogger.com,1999:blog-9182705499898252496.post-8215701883275556458' source='http://www.blogger.com/feeds/9182705499898252496/posts/default/8215701883275556458' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-743262253'/></entry><entry><id>tag:blogger.com,1999:blog-9182705499898252496.post-5288497750866386808</id><published>2010-04-06T13:38:06.267-04:00</published><updated>2010-04-06T13:38:06.267-04:00</updated><title type='text'>BTW, I&amp;#39;m taking a Computer Science course that...</title><content type='html'>BTW, I&amp;#39;m taking a Computer Science course that&amp;#39;s based on SICP this semester, and your notes are really helpful for me. Keep up the good work and thanks. :)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9182705499898252496/8215701883275556458/comments/default/5288497750866386808'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9182705499898252496/8215701883275556458/comments/default/5288497750866386808'/><link rel='alternate' type='text/html' href='http://www.billthelizard.com/2010/03/sicp-exercise-128-miller-rabin-test.html?showComment=1270575486267#c5288497750866386808' title=''/><author><name>Yonatan Erez</name><uri>http://www.blogger.com/profile/15876468826235776771</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.billthelizard.com/2010/03/sicp-exercise-128-miller-rabin-test.html' ref='tag:blogger.com,1999:blog-9182705499898252496.post-8215701883275556458' source='http://www.blogger.com/feeds/9182705499898252496/posts/default/8215701883275556458' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-74557598'/></entry><entry><id>tag:blogger.com,1999:blog-9182705499898252496.post-1217909889741151618</id><published>2010-04-06T13:34:22.961-04:00</published><updated>2010-04-06T13:34:22.961-04:00</updated><title type='text'>Hi Bill,

It seems like your miller-rabin-test imp...</title><content type='html'>Hi Bill,&lt;br /&gt;&lt;br /&gt;It seems like your miller-rabin-test implementation only tests a single random integer. On SICP, when they implemented the fermat-test, they also made the wrapping (fast-prime?) procedure that runs the fermat-test numerous times on random integers.&lt;br /&gt;&lt;br /&gt;I think you should add a similar procedure to the post.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9182705499898252496/8215701883275556458/comments/default/1217909889741151618'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9182705499898252496/8215701883275556458/comments/default/1217909889741151618'/><link rel='alternate' type='text/html' href='http://www.billthelizard.com/2010/03/sicp-exercise-128-miller-rabin-test.html?showComment=1270575262961#c1217909889741151618' title=''/><author><name>Yonatan Erez</name><uri>http://www.blogger.com/profile/15876468826235776771</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.billthelizard.com/2010/03/sicp-exercise-128-miller-rabin-test.html' ref='tag:blogger.com,1999:blog-9182705499898252496.post-8215701883275556458' source='http://www.blogger.com/feeds/9182705499898252496/posts/default/8215701883275556458' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-74557598'/></entry><entry><id>tag:blogger.com,1999:blog-9182705499898252496.post-2871590586728563663</id><published>2010-03-06T08:51:20.855-05:00</published><updated>2010-03-06T08:51:20.855-05:00</updated><title type='text'>Thank you very much! also for the SO internal cont...</title><content type='html'>Thank you very much! also for the SO internal contact method.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9182705499898252496/8215701883275556458/comments/default/2871590586728563663'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9182705499898252496/8215701883275556458/comments/default/2871590586728563663'/><link rel='alternate' type='text/html' href='http://www.billthelizard.com/2010/03/sicp-exercise-128-miller-rabin-test.html?showComment=1267883480855#c2871590586728563663' title=''/><author><name>kami</name><uri>http://www.blogger.com/profile/00772644824119612677</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.billthelizard.com/2010/03/sicp-exercise-128-miller-rabin-test.html' ref='tag:blogger.com,1999:blog-9182705499898252496.post-8215701883275556458' source='http://www.blogger.com/feeds/9182705499898252496/posts/default/8215701883275556458' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-977141173'/></entry><entry><id>tag:blogger.com,1999:blog-9182705499898252496.post-3746351031723633855</id><published>2010-03-06T08:40:28.801-05:00</published><updated>2010-03-06T08:40:28.801-05:00</updated><title type='text'>kami,
I went ahead and deleted it for you.  I&amp;#39;...</title><content type='html'>kami,&lt;br /&gt;I went ahead and deleted it for you.  I&amp;#39;m a moderator on Stack Overflow, so you can click the &amp;quot;flag&amp;quot; link below the tags, then select &amp;quot;Requires moderator attention&amp;quot; from the list that appears whenever a question or answer on that site needs special attention.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9182705499898252496/8215701883275556458/comments/default/3746351031723633855'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9182705499898252496/8215701883275556458/comments/default/3746351031723633855'/><link rel='alternate' type='text/html' href='http://www.billthelizard.com/2010/03/sicp-exercise-128-miller-rabin-test.html?showComment=1267882828801#c3746351031723633855' title=''/><author><name>Bill the Lizard</name><uri>http://www.blogger.com/profile/09810099093752485841</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_PnLYRqe0k9g/SKywgF43rhI/AAAAAAAAAAQ/0l6VoF8jG0M/S220/lizard-icon.jpeg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.billthelizard.com/2010/03/sicp-exercise-128-miller-rabin-test.html' ref='tag:blogger.com,1999:blog-9182705499898252496.post-8215701883275556458' source='http://www.blogger.com/feeds/9182705499898252496/posts/default/8215701883275556458' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-743262253'/></entry><entry><id>tag:blogger.com,1999:blog-9182705499898252496.post-7352551693848191815</id><published>2010-03-06T05:01:06.598-05:00</published><updated>2010-03-06T05:01:06.598-05:00</updated><title type='text'>hi bill, i am a Stack Overflow user, i tried to en...</title><content type='html'>hi bill, i am a Stack Overflow user, i tried to end one of my questions but no luck, i saw you are the last editer on that question, could you tell me how to do it? the question link is http://stackoverflow.com/questions/2208122/how-to-draw-a-groove-line-use-ps-it-seems-too-basic-that-no-tutorial-on-google</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9182705499898252496/8215701883275556458/comments/default/7352551693848191815'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9182705499898252496/8215701883275556458/comments/default/7352551693848191815'/><link rel='alternate' type='text/html' href='http://www.billthelizard.com/2010/03/sicp-exercise-128-miller-rabin-test.html?showComment=1267869666598#c7352551693848191815' title=''/><author><name>kami</name><uri>http://www.blogger.com/profile/00772644824119612677</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.billthelizard.com/2010/03/sicp-exercise-128-miller-rabin-test.html' ref='tag:blogger.com,1999:blog-9182705499898252496.post-8215701883275556458' source='http://www.blogger.com/feeds/9182705499898252496/posts/default/8215701883275556458' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-977141173'/></entry></feed>
