Algorithm For Prime Numbers Programming