Neural computing approach to number theory problems