Playing with numbers theory and different algorithms related to it