Erlang error on send to registered process
问题 I'm trying to make Erlang program that finds prime numbers with processes (ineffective, I know, but hey, it's just for fun :) ) - something along the lines of numbersimulation.com. On each "tick" the server spawns new process ("number") that increments its counter. If counter == that number, it's a factor, so we let server know. If server doesn't get any messages, it's a prime number. On small numbers (primes upto N, the server(50,L) line) it's okay, but on the bigger ones it crashes with: