You need to find what that beep code means. Your diagnosis of bad RAM is certainly a possibility, but that beep code is going to give you the definitive answer.
Check this link, which makes a good starting point:
According to that, it's a video card problem. That resource isn't the end-all/be-all, mind you.