Download a software called memtest. This will test your rams. It seems your rams are faulty. Either that or check if its inserted properly. It either could be that or this: http://www.thinkdigit.com/forum/showthread.php?t=88720
Not trying to scare you, giving a heads up.