bellerina: (Default)
bellerina ([personal profile] bellerina) wrote in [community profile] intro_to_cs 2009-11-19 05:35 am (UTC)

I think that you can't take the log of an array-- it's not distributive. I tried the same thing and got the error, so I ended up taking the log of each prime before I put them into the array. Not the most elegant solution, but it works...

Post a comment in response:

This community only allows commenting by members. You may comment here if you're a member of intro_to_cs.
(will be screened if not on Access List)
(will be screened if not on Access List)
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting