100XCODE: DAY 2

نتيجة بحث الصور عن ‪day 2 gif‬‏

Project Euler :

Problem 1 and 2 using python 

1

Problem 3 : Largest prime factor

The prime factors of 13195 are 5, 7, 13 and 29.

What is the largest prime factor of the number 600851475143 ?

R

2

Python

4

Answer:
6857

3

 

Problem 4 :Largest palindrome product

A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 × 99.

Find the largest palindrome made from the product of two 3-digit numbers.

R

5

Python

6

Answer:
906609

8

Problem5 :Smallest multiple

2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder.

What is the smallest positive number that is evenly divisible by all of the numbers from 1 to 20?

R

10

python

9

Answer:
232792560

11

نتيجة بحث الصور عن ‪happy gif‬‏

So now i solved 5  Euler project problems😍✅💪  both in R and Python  💪, the first 5 problem were supposed to be easy , its  actually easy in mathematical perspective but it took almost 50  min  per problem to write it in code .😅

i ended my session with a simple python game 🕺🙆

.نتيجة بحث الصور عن ‪Rock, Paper, Scissors gif‬‏

 

Python Game: Rock, Paper, Scissors

Advertisements

2 thoughts on “100XCODE: DAY 2

Add yours

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 )

Google+ photo

You are commenting using your Google+ 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 )

Connecting to %s

Blog at WordPress.com.

Up ↑

%d bloggers like this: