Evolving Prime Number Algorithms: Can Computers Duplicate Human Programming?

AI Thread Summary
Prime number algorithms vary in complexity, with the simplest method involving division by all integers less than the prime number. More efficient approaches include checking divisibility only up to the square root of the number, rather than half. The discussion explores whether the evolution of programming logic can be replicated by computers, particularly through languages like Haskell. This concept aligns with fields such as genetic programming and metaprogramming, which involve meta-learning and machine learning techniques. For those interested in implementing these ideas, researching keywords related to meta-genetic programming and machine learning is advisable.
shivakumar06
Messages
69
Reaction score
0
there are many prime number algorithm the simplest being dividing all the number less than the prime number. then comes division of number less than or equal half of the number to prime number with the prime number finally the division by all the smaller prime number than the given number with the required number. this is just the the way a program has evolved in the mind of the programmer. can this evolution of programming duplicated by the computer. if only the objective of programme given.(may be in haskell programming i am not sure) if yes by which programming language and the i need the key words that can be used as well
 
Last edited:
Computer science news on Phys.org
there are many prime number algorithm the simplest being dividing all the number less than the prime number. then comes division of number less than or equal half of the number to prime number

Actually, you only need to check possible primes up to the square root of the number you're trying to factor. Going up to half of the number you're trying to factor is overkill.

this is just the the way a program has evolved in the mind of the programmer. can this evolution of programming duplicated by the computer. if only the objective of programme given.(may be in haskell programming i am not sure) if yes by which programming language and the i need the key words that can be used as well

What you're talking about sounds like a cross between genetic programming and metaprogramming. There's been some work done in this area, such as meta-learning for machine learning algorithms, meta-genetic programming, and to a certain extent, machine learning in general. I recommend looking into these fields to start and seeing where that takes you.
 
Sorry if 'Profile Badge' is not the correct term. I have an MS 365 subscription and I've noticed on my Word documents the small circle with my initials in it is sometimes different in colour document to document (it's the circle at the top right of the doc, that, when you hover over it it tells you you're signed in; if you click on it you get a bit more info). Last night I had four docs with a red circle, one with blue. When I closed the blue and opened it again it was red. Today I have 3...
Thread 'ChatGPT Examples, Good and Bad'
I've been experimenting with ChatGPT. Some results are good, some very very bad. I think examples can help expose the properties of this AI. Maybe you can post some of your favorite examples and tell us what they reveal about the properties of this AI. (I had problems with copy/paste of text and formatting, so I'm posting my examples as screen shots. That is a promising start. :smile: But then I provided values V=1, R1=1, R2=2, R3=3 and asked for the value of I. At first, it said...
Back
Top