I think your processor has HD 520 graphics, it'll struggle to run GTA 5 even at lowest settings, especially considering 4GB RAM is the absolute minimum as well (8GB is recommended).
You need more RAM and a dedicated graphics card, otherwise GTA 5 will not be a very satisfying experience at all, I'd say a waste of money buying it with your current hardware specs.