MathWorks interview question

Given a list of positive integers a[n], compute phi[a[i]] for each i, where phi[x] is the number of positive integers relatively prime to x.