#prime subtracter

12 messages · Page 1 of 1 (latest)

tidal hemlock
#

is there a function that subtracts all the prime numbers from the given imput x
for example x=18 ( from 0 to 18 there are 7 prime numbers (2,3,5,7,9,11,13,17) )
18-7= 11
is that even possible?

wise blazeBOT
wooden snow
#

search for prime functions

#

I remember there being a prime number function for smaller primes

tidal hemlock
#

im searching rn but i doubt that i will a direct answer

wooden snow
#

i mean if you get the function then its just

tidal hemlock
wooden snow
#

primes are random

tidal hemlock
#

no theyre not?

wooden snow
#

they are

tidal hemlock
#

Despite their simple definition, prime numbers don't follow a regular pattern as they occur. (google)

#

oh nvm i didnt know that