TOKYO, June 30 (Reuters) - Japan's Nikkei average rose 1.9 percent on Tuesday and briefly hit 10,000 as surging crude prices boosted resource shares amid growing optimism that the recession may be easing. Elpida Memory Inc rose to 2.4 percent after the Japanese government said it would invest 30 billion yen ($312.3 million) in the computer chip maker, with other high-tech shares stronger as well. The benchmark Nikkei was up 184.57 points at 9,968.04 after briefly hitting 10,000.30, its highest level in two weeks. The broader Topix gained 1.6 percent to 929.64. (Reporting by Elaine Lies)