Bubble sort algorithm and check-if-prime algorithm