Just having a look a the mathematics behind the Cube movie again as I was thinking of making a Minecraft map generator along those lines. Looking at the flag for trap rooms - rooms whose co-ordinaes are primes or made up of prime powers, there are some definite "these will always be safe" areas - 6,12,15,21, 24 and 26 (the Cube is a 26x26 area of moving rooms)

For those not familiar with the co-ordinate system of rooms in the movie CUBE, they're a set of three 3 digit numbers. You add up each digit in a group of three to get the correct co-ordinate. Thus the very centre of the CUBE could be a room with the identification number of 067-841-607, which is at co-ordinates 13x,13y,13z - and would be a trapped room in this case because all three numbers are either primes or made of powers of prime numbers. A safe version of this room would be 076-832-706 or some other version.

Trap numbers are-

1, 2, 3, 4, 5, 7, 8, 9, 11, 13, 16, 17, 19, 23, 25, 27, 29, 31, 32, 37, 41, 43, 47, 49, 53, 59, 61, 64, 67, 71, 73, 79, 81, 83, 89, 97, 101, 103, 107, 109, 113, 121, 125, 127, 128, 131, 137, 139, 149, 151, 157, 163, 167, 169, 173, 179, 181, 191, 193, 197, 199, 211, 223, 227, 229, 233, 239, 241, 243, 251, 256, 257, 263, 269, 271, 277, 281, 283, 289, 293, 307, 311, 313, 317, 331, 337, 343, 347, 349, 353, 359, 361, 367, 373, 379, 383, 389, 397, 401, 409, 419, 421, 431, 433, 439, 443, 449, 457, 461, 463, 467, 479, 487, 491, 499, 503, 509, 512, 521, 523, 529, 541, 547, 557, 563, 569, 571, 577, 587, 593, 599, 601, 607, 613, 617, 619, 625, 631, 641, 643, 647, 653, 659, 661, 673, 677, 683, 691, 701, 709, 719, 727, 729, 733, 739, 743, 751, 757, 761, 769, 773, 787, 797, 809, 811, 821, 823, 827, 829, 839, 841, 853, 857, 859, 863, 877, 881, 883, 887, 907, 911, 919, 929, 937, 941, 947, 953, 961, 967, 971, 977, 983, 991, 997

Interestingly if you look at the frequency of the sums of the digits, the co-ordinate 13 is the most common number, followed by 17, 10 and 16, 11 and 14, 8 and 19, 7, 20, 5, 4 and 22, 9 and 23, 2, 1 and 3 and 18 and 25

If I do get the generator working that makes a random CUBE (obviously without the moving rooms of the movie) - just make sure never to enter a roomwith the above numbers in it :)