C
de
S
pace
Explore
Log In
Explore
Sign Up
Log In
loganjohansson496
22.05.2026 10:59
3
Pomodoro timer #76
algo.py
def is_prime(n): if n < 2: return False for i in range(2, int(n**0.5)+1): if n % i == 0: return False return True print(is_prime(17))
config.py
def bubble_sort(arr): n = len(arr) for i in range(n): for j in range(0, n-i-1): if arr[j] > arr[j+1]: arr[j], arr[j+1] = arr[j+1], arr[j] return arr print(bubble_sort([5, 3, 8, 1, 2]))
Idle
Try It
Clear
Log in
to leave a comment
Are you sure you want to delete this post?
Delete
Cancel