Gentiles do not have a commandment to learn the Written Torah.
8Then Hilkiah the high priest said to Shaphan the scribe, I have found the book of the law in the house of the LORD. And Hilkiah gave the book to Shaphan who read it. 9Shaphan the scribe came to the king and brought back word to the king and said, Your servants have emptied out the money that was found in the house, and have delivered it into the hand of the workmen who have the oversight of the house of the LORD. 10Moreover, Shaphan the scribe told the king saying, Hilkiah the priest has given me a book. And Shaphan read it in the presence of the king. 11When the king heard the words of the book of the law, he tore his clothes. 12Then the king commanded Hilkiah the priest, Ahikam the son of Shaphan, Achbor the son of Micaiah, Shaphan the scribe, and Asaiah the kings servant saying, 13Go, inquire of the LORD for me and the people and all Judah concerning the words of this book that has been found, for great is the wrath of the LORD that burns against us, because our fathers have not listened to the words of this book, to do according to all that is written concerning us.
2 Kings 22:8-13 NASB