From 07b36567023d4e022ccbd7303ca5fbfdbf58ccd5 Mon Sep 17 00:00:00 2001 From: Venikov Dmitry Date: Fri, 26 Jul 2013 11:51:19 +0400 Subject: [PATCH 1/2] Quoly changed Happy Numbers --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 822833050..a2c73654b 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -Mega Project List +Mega Project List ======== #### [RECOGNITION](https://github.com/thekarangoel/Projects/tree/master/RECOGNITION) @@ -67,7 +67,7 @@ Numbers **Complex Number Algebra** - Show addition, multiplication, negation, and inversion of complex numbers in separate functions. (Subtraction and division operations can be made with pairs of these operations.) Print the results for each operation tested. -**Happy Numbers** - A happy number is defined by the following process. Starting with any positive integer, replace the number by the sum of the squares of its digits, and repeat the process until the number equals 1 (where it will stay), or it loops endlessly in a cycle which does not include 1. Those numbers for which this process ends in 1 are happy numbers, while those that do not end in 1 are unhappy numbers. Take an input number from user, and find first 8 happy numbers from that input. +**Happy Numbers** - A happy number is defined by the following process. Starting with any positive integer, replace the number by the sum of the squares of its digits, and repeat the process until the number equals 1 (where it will stay), or it loops endlessly in a cycle which does not include 1. Those numbers for which this process ends in 1 are happy numbers, while those that do not end in 1 are unhappy numbers. Take an input number from user, and find first 8 happy numbers from that input. [https://github.com/Quoly/Projects/blob/master/happy_numbers.py] **Number Names** - Show how to spell out a number in English. You can use a preexisting implementation or roll your own, but you should support inputs up to at least one million (or the maximum value of your language's default bounded integer type, if that's less). *Optional: Support for inputs other than positive integers (like zero, negative integers, and floating-point numbers).* From 49fe2b3dbd9eb66dbe50ec8ae7ff5636a151c40b Mon Sep 17 00:00:00 2001 From: Venikov Dmitry Date: Fri, 26 Jul 2013 13:19:27 +0400 Subject: [PATCH 2/2] Added Happy Numbers --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a2c73654b..fe07b14a5 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,7 @@ Numbers **Complex Number Algebra** - Show addition, multiplication, negation, and inversion of complex numbers in separate functions. (Subtraction and division operations can be made with pairs of these operations.) Print the results for each operation tested. -**Happy Numbers** - A happy number is defined by the following process. Starting with any positive integer, replace the number by the sum of the squares of its digits, and repeat the process until the number equals 1 (where it will stay), or it loops endlessly in a cycle which does not include 1. Those numbers for which this process ends in 1 are happy numbers, while those that do not end in 1 are unhappy numbers. Take an input number from user, and find first 8 happy numbers from that input. [https://github.com/Quoly/Projects/blob/master/happy_numbers.py] +**Happy Numbers** - A happy number is defined by the following process. Starting with any positive integer, replace the number by the sum of the squares of its digits, and repeat the process until the number equals 1 (where it will stay), or it loops endlessly in a cycle which does not include 1. Those numbers for which this process ends in 1 are happy numbers, while those that do not end in 1 are unhappy numbers. Take an input number from user, and find first 8 happy numbers from that input.[Quoly](https://github.com/Quoly/Projects/blob/master/happy_numbers.py) **Number Names** - Show how to spell out a number in English. You can use a preexisting implementation or roll your own, but you should support inputs up to at least one million (or the maximum value of your language's default bounded integer type, if that's less). *Optional: Support for inputs other than positive integers (like zero, negative integers, and floating-point numbers).*