Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Uncategorized category for Restricted Prime by chiral
tf="FFTTFTFTFFFTFTFFFTFTFFFTFFFFFTFTFFFFFTFFFTFTFFFTFFFFFTFFFFFTFTFFFFFTFFFTFTFFFFFTFFFTFFFFFTFFFFFFFTFFFTFTFFFTFTFFFTFFFFFFFFFFFFFTFFFTFFFFFTFTFFFFFFFFFTFTFFFFFTFFFFFTFFFTFFFFFTFFFFFTFTFFFFFFFFFTFTFFFTFTFFFFFFFFFFFTFFFFFFFFFFFTFFFTFTFFFTFFFFFTFTFFFFFFFFFTFFFFFTFFFFFTFFFFFTFTFFFFFTFFFTFTFFFFFFFFFTFFFFFFFFFFFFFTFFFTFTFFFTFFFFFFFFFFFFFTFFFFFTFFFFFFFFFTFTFFFTFFFFFTFFFFFFFTFFFFFTFFFFFTFFFTFFFFFTFFFFFFFTFFFTFFFFFFFTFFFFFFFFFTFTFFFFFFFFFTFTFFFFFTFFFTFFFFFTFFFFFFFTFFFTFTFFFTFFFFFFFFFFFTFFFFFFFTFFFTFFFFFFFTFFFTFFFFFTFFFFFFFFFFFTFTFFFFFFFFFFFFFFFFFTFFFFFTFFFFFFFFFTFFFFFTFFFFFTFTFFFFFTFFFFFFFFFTFFFFFTFFFFFTFTFFFFFTFFFFFTFFFTFTFFFFFFFFFFFTFFFFFFFFFTFTFFFTFFFFFTFFFFFTFTFFFFFFFFFFFTFFFTFFFFFTFFFFFFFTFFFFFFFFFTFFFFFFFTFFFFFFFFFTFFFFFFFTFFFFFTFFFFFTFFFTFFFFFFFTFFFFFTFFFTFFFFFFFTFFFTFFFFFFFFFFFFFTFFFFFFFFFTFFFFFFFFFFFTFTFFFFFFFFFTFTFFFTFTFFFFFFFFFTFFFFFFFFFFFFFTFFFTFTFFFTFFFFFFFFFFFFFTFFFTFTFFFTFFFFFFFFFFFFFFFFFFFTFFFTFFFFFFFTFFFFFFFFFTFFFFFFFTFFFTFFFFFTFFFFFTFFFFFFFFFFFFF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