Wolfram ResearchProductsPurchasingServices & ResourcesAbout UsOur Sites
Student Support Forum
-----
Student Support Forum: 'Prime Divisors' topicStudent Support Forum > General > "Prime Divisors"

Next Comment >Help | Reply To Topic | Post New Topic
Author Comment/Response
stephanos
07/03/08 06:20am

I am trying to define a function f[n], such that it is a sum over the prime divisors of n. I tried using

g[n_] = Intersection[Divisors[n], Primes]
f[n_] = Total[g[n]]

My problem is that when I try to define g[n_] I get an error message that states that a nonatomic expression is expected at position 2 of the Intersection.

Thank you for your time,

Stephanos

URL: ,

Subject (listing for 'Prime Divisors')
Author Date Posted
Prime Divisors stephanos 07/03/08 06:20am
Re: Prime Divisors S. Saralamba 07/06/08 11:46pm
Re: Prime Divisors Xavier 07/07/08 01:09am
Re: Prime Divisors yehuda ben-s... 07/07/08 07:00am
Re: Prime Divisors VolMike 07/08/08 2:27pm
Next Comment >Help | Reply To Topic | Post New Topic





 © 2008 Wolfram Research, Inc.  Terms of Use  Privacy Policy