Since we suspect your memory (RAM) problem, turn your computer off, remove side panel, touch any bare metal part to protect computer parts from static.
This is how your motherboard looks like. I indicated RAM slots with red rectangle:
Remove RAM:
Hold it by sides. Use soft eraser to clean connectors (up, and down, not across).
Put RAM back, restart computer.
Pay attention for beeps.
Post back.