Monday, November 21, 2011

Prime number wave

I never knew if this was possible or not but apparently so. I started with considering an infinite square wave only 0 every say, 3rd number and then multiplying all the waves of that type gives this nice wave that is only 1 where t doesn't divide any number but 1 and itself. In other words it is prime. In practice there are easier ways to find the prime numbers but I still think this function is interesting. 

No comments:

Post a Comment