Found with PFGW Version 3.4.6
40^6393-39 is 2-PRP! (2.4550s+0.0035s)
40^6393-39 is 3-PRP! (2.4459s+0.0039s)
40^6393-39 is 5-PRP! (2.5664s+0.0038s)
40^6393-39 is 7-PRP! (2.5367s+0.0038s)
40^6393-39 is 11-PRP! (2.4445s+0.0041s)
Primality testing 40^6393-39 [N-1/N+1, Brillhart-Lehmer-Selfridge]
Running N-1 test using base 11
Running N-1 test using base 17
Running N-1 test using base 23
Running N+1 test using discriminant 61, base 12+sqrt(61)
Calling N-1 BLS with factored part 0.63% and helper 0.00% (1.89% proof)
40^6393-39 is Fermat and Lucas PRP! (22.5845s+0.0083s)
To be completed...