Prime Number Regex
Prime Number Regex
I was messing around representing integers using binary trees, and noticed that a certain tree format makes it trivial to grep for prime numbers. Probably not very novel, but thought y'all might enjoy it. Here's one through sixteen: * (()()) * ((()())()) * (((()())())()) (((()())())(()())) * ((((()())())())()) ((((()())())())(()())) * ((((()())())(()()))()) ((((()())())(()()))(()())) ((((()())())(()()))((()())())) ((((()())())(()()))(((()())())())) * (((((()())())())())()) (((((()())())())())(()())) * (((((()())())())(()()))()) (((((()())())())(()()))(()())) (((((()())())())(()()))((()())())) (((((()())())())(()()))(((()())())())) I added asterisks in front of the primes. Here's the set of 16-bit ints: https://gist.github.com/cieplak/213fb4c88581d8971b274b7ec647... The regex just checks if the string ends with '())': cat integers.txt | grep '())$' | nl | tail -1
Share cardActual performance
Launch Intel predictions
Analyze your own launch →Correct prediction on native model
Similar products
Painting by Prime Number
Posit number
Polyordle – an arbitrary number of Wordles at once
The number 42
are you a Number Maniac?
Number Maniac
Get your EAN/UPC number with Bitcoins
Collega i numeri. Una sola soluzione. Livelli infiniti.
Discover the Meaning Behind Every Angel Number
Tackle – A Toll-Free Number in 60s