On the Prime Number Divisibility by Deep Learning

04/03/2023
by   Da Wu, et al.
0

Certain tasks such as determining whether a given integer can be divided by 2, 3, or other prime numbers may be trivial for human beings, but can be less straightforward for computers in the absence of pre-specified algorithms. In this paper, we tested multiple deep learning architectures and feature engineering approaches, and evaluated the scenario of determining divisibility of large finite integers (up to 2^32) by small prime numbers. It turns out that, regardless of the network frameworks or the complexity of the network structures (CNN, RNN, Transformer, etc.), the ability to predict the prime number divisibility critically depends on the feature space fed into the deep learning models. We also evaluated commercially available Automated Machine Learning (AutoML) pipelines from Amazon, Google and Microsoft, and demonstrated that they failed to address this issue unless appropriately engineered features were provided. We further proposed a closed form solution to the problem using the ordinary linear regression on Fourier series basis vectors, and showed its success. Finally, we evaluated prompt-based learning using ChatGPT and demonstrated its success on small primes and apparent failures on larger primes. We conclude that feature engineering remains an important task to improve the performance, increase the interpretability, and reduce the complexity of machine learning/deep learning models, even in the era of AutoML and large-language models (LLMs).

READ FULL TEXT

page 1

page 2

page 3

page 4

research
06/12/2020

On the Skolem Problem and Prime Powers

The Skolem Problem asks, given a linear recurrence sequence (u_n), wheth...
research
07/02/2020

Addressing the interpretability problem for deep learning using many valued quantum logic

Deep learning models are widely used for various industrial and scientif...
research
08/29/2023

On the Steganographic Capacity of Selected Learning Models

Machine learning and deep learning models are potential vectors for vari...
research
04/10/2019

On the k-error linear complexity of subsequences of d-ary Sidel'nikov sequences over prime field F_d

We study the k-error linear complexity of subsequences of the d-ary Side...
research
04/12/2017

Determining Song Similarity via Machine Learning Techniques and Tagging Information

The task of determining item similarity is a crucial one in a recommende...
research
03/25/2018

Goldbach's Function Approximation Using Deep Learning

Goldbach conjecture is one of the most famous open mathematical problems...

Please sign up or login with your details

Forgot password? Click here to reset