Hello everyone, I'using Sage for three weeks now and I got a problem.I have been looking for the error in this code for about 3 days and I can't figure it out. Maybe you can help me :)
var("a,b,n");
f(n)=n^2+a*n+b:
for a in range(1,41):
for b in range(1,41):
if f(n) in ZZ;
for n in range(0,41)
if is_prime(f(n)):
print(a); print(b)
I'm getting the error:
__tmp__=var("n"); f = symbolic_expression(n**Integer(2)+a*n+b:).function(n)
^
SyntaxError: invalid syntax
I hope you can help me :)