Display following patterns:-
2. Code to display prime numbers from 1-100.
3. Code to display Armstrong numbers from 1-1000.