(50g) Fibonnaci Pseudoprime Test & Prime Test
|
02-17-2019, 09:12 PM
(This post was last modified: 02-18-2019 09:39 PM by Albert Chan.)
Post: #2
|
|||
|
|||
RE: (50g) Fibonnaci Pseudoprime Test & Prime Test
Using Mathematica, this shows first few Fibonacci pseudoprimes, below 1000:
f[n_] := Fibonacci[n - Part[{0, 1, -1, -1, 1}, Mod[n,5]+1]]; fprimeQ[n_] := (Mod[f[n], n] == 0); Select[Table[i, {i,1000}], fprimeQ[#] != PrimeQ[#]&] → {1, 25, 60, 120, 125, 180, 240, 300, 323, 360, 377, 480, 540, 600, 625, 660, 720, 840, 900, 960} Edit: tried above code to strong pseduoprimes, base-2: https://oeis.org/A001262 → smallest number that is both strong base-2 and Fibonacci pseduoprime is 252601 |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
(50g) Fibonnaci Pseudoprime Test & Prime Test - Gerald H - 02-17-2019, 05:47 PM
RE: (50g) Fibonnaci Pseudoprime Test & Prime Test - Albert Chan - 02-17-2019 09:12 PM
RE: (50g) Fibonnaci Pseudoprime Test & Prime Test - Albert Chan - 02-18-2019, 03:01 AM
RE: (50g) Fibonnaci Pseudoprime Test & Prime Test - Gerald H - 02-18-2019, 06:18 AM
RE: (50g) Fibonnaci Pseudoprime Test & Prime Test - Gerald H - 02-26-2019, 07:55 AM
RE: (50g) Fibonnaci Pseudoprime Test & Prime Test - Albert Chan - 02-26-2019, 02:03 PM
RE: (50g) Fibonnaci Pseudoprime Test & Prime Test - Gerald H - 02-26-2019, 04:29 PM
RE: (50g) Fibonnaci Pseudoprime Test & Prime Test - Albert Chan - 02-26-2019, 06:18 PM
RE: (50g) Fibonnaci Pseudoprime Test & Prime Test - Gerald H - 02-26-2019, 06:30 PM
|
User(s) browsing this thread: 1 Guest(s)