GoalScope — prime_fib (Qwen2.5-Coder-32B-Instruct) — hover a token to see the patched verbalization
↵
<code>↵
def prime_fib(n: int):↵
"""Return the n-th Fibonacci number that is also prime."""↵
def is_prime(num):↵
if num < 2:↵
return False↵
for i in range(2, int(num**0.5) + 1):↵
if num % i == 0:↵
return False↵
return True↵
↵
fibs = [0, 1]↵
count = 0↵
while True:↵
next_fib = fibs[-1] + fibs[-2]↵
fibs.append(next_fib)↵
if is_prime(next_fib):↵
count += 1↵
if count == n:↵
return next_fib↵
</code>