SICP exercises 1.2 cont. 9

1.21

guile> (smallest-divisor 199)
199
guile> (smallest-divisor 1999)
1999
guile> (smallest-divisor 19999)
7

Comments: Took only a few seconds. I did pretty much nothing today except read bits of SICP. Feel a bit guilty so I’m going to try to get more than usual done for the next 24 hours.

Advertisements


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s