Functions Practice

Problem 1: Write a function that takes in an integer and returns true if the integer is a prime number.

Problem 2: Write a function to find all prime numbers between two intervals.
Eg.

Input lower limit: 10 
Input upper limit: 50 
Output prime numbers between 10-50 are: 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47 

Problem 3: Write a program to print pascal triangle up to n rows. 

Info about pascal triangles: Pascal Triangles

For example Pascal triangle with 5 rows. 
    1
   1 1
  1 2 1
 1 3 3 1
1 4 6 4 1