I was having fun with Sage when I noticed something interesting:
primes = [p for p in range(500) if p in Primes()] primes_rev = [p for p in reversed(primes)] sum = map(operator.add, primes, primes_rev) mul = map(operator.mul, primes, primes_rev) sub = map(operator.sub, primes, primes_rev) div = map(operator.div, primes, primes_rev)
We create a list of prime numbers, primes
. We reverse the list, primes_rev
. We create new lists from applying math operations to each element of both lists, sum
, mul
, sub
, div
. Then we plot the new lists.
list_plot(sum)
list_plot(mul)
list_plot(sub)
list_plot(div)
Does this say anything about prime numbers?