How Fermat is this number? Jelly, 15 14 bytes 1 byte thanks to Jonathan Allan. ’µBḊ⁸LṀ?µÐĿḊḊL Try it online!