Warning: The magic method Slickr_Flickr_Plugin::__wakeup() must have public visibility in /home/kenbauer/public_kenscourses/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php on line 152

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101fall2015/wp-includes/feed-rss2.php on line 8
‘#WSQ11.py’ Articles at TC101 Fall 2015 https://kenscourses.com/tc101fall2015 Introduction to Programming Python and C++ Thu, 26 Nov 2015 05:10:46 +0000 en hourly 1 https://creativecommons.org/licenses/by/4.0/ Yo soy 196 https://kenscourses.com/tc101fall2015/2015/yo-soy-196-8/ Thu, 26 Nov 2015 05:10:46 +0000 http://saldabal.wordpress.com/?p=165 Continue Reading →]]> This task was of the most challenging ones of the entire course. We had to make a programm to find candidates of lychrel numbers in a given range. First of all i had to look what a lychrel number was because i never heard of it. Then i found out that theres a theory that when you add a number to its inverse ‘n’ times eventually it will become palyndrome which means, if you read it backward it would be the same as if you read it normally.

But there are some numbers that havent been able to prove this theory, i even read that ones, scientifics let a computer programm running for three years in search for its palyndrome, eventually they stopped the programm and found a number of one million digits which is a lot, but never the palyndrome.

I get confused a lot with variables but at the end Ken helped me to fix the last problems, here is my code: https://github.com/sabaldaba/TC101/blob/master/wsq11_soy:196

 

Hope you like it!

]]>
https://creativecommons.org/licenses/by/4.0/