What it would cost to create every possible image? How much time? How much memory it would be needed?
===

A crazy idea just came to my mind this morning: What if we produced every possible image (in a predefined resolution of course)? Every possible image!! That would be awsome!!

Unfortunately I suppose it's just imposible, it would cost too much memory and time to produce them. But how much?

My questions:

-What is the algorithm needed to do this?

-What would be the most efficient way to do it?

(producing the images in this resolutions: 640x320, 800x600, 1024x768 and 1920x1080
with the usual color depth used nowadays)

-How much images would be produced?

-How much memory would be needed to store them in a HD?

-How much time will cost to produce them in a Raspberry Pi, more or less? (just to put an example with a well known computer)

PD: I know that this is not a technical question, it's not too related to programing and maybe some these questions have a quite obvious answer, I know... But I think that is an awesome idea to think about... If someone thinks that this question it's not apropiate just tell me.