_Factorman_ by Matt Ginsberg, is a thriller based on the premise that a researcher solves P=NP.
https://www.amazon.com/Factor-Man-Matt-Ginsberg/dp/099975711...
Daniel Suarez' Daemon and the sequel Freedom(TM) https://www.amazon.com/gp/product/1524741892