Sorry, it is not possible to write either of those functions.
Consider the output required for isPrime(inf): it is undefined as to whether infinity is prime or not, so returning either 0 or 1 would be improper.
Consider the output required for primeList(inf): it has been proven (in numerous ways) that there are an infinite number of primes, so primeList(inf) would have to return an infinite list, which would require an infinite amount of storage and an infinite time.
Consider the output required for
sym x
isPrime(x)
Since the value associated with the symbol is unknown, it is not possible for isPrime to decide whether x is prime or not, so it cannot return either 1 or 0.