View Single Post
Old 2020-02-15, 05:18   #3
axn
 
axn's Avatar
 
Jun 2003

10001101101112 Posts
Default

Simpler form (note: off by 1 from LaurV):
Code:
doze(n)=(12^(2*n)-1)/11 + 12^n
for(i=1, 2000, n=doze(i); if(ispseudoprime(n), print(i)))
2
3
4
28
36
43
67
86
218
427
1284
axn is offline   Reply With Quote