Prime number are numbers that are divisible only by 1 and the number itself. Examples would be 1, 2, 3, 5, and 7. The prime factorization of 5005 is as follows:
5005
/ \
5005 1
/ \
1001 5
/ \
7 143
The prime numbers are 1, 5, 7 and 143. Arranging the digits in increasing order, that would be: 1, 1, 3, 4, 5, 7. Thus, the code is 113457.