2001 saturn high idle rpm

As i started up my car when coming back from the store it had an unusually high rpm. It stayed at or about 4000 rpm at idle, but went down when i started to drive. Any ideals about my problem?