Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^2: check for square-number with a regex

by spx2 (Deacon)
on Oct 25, 2009 at 15:38 UTC ( [id://803157]=note: print w/replies, xml ) Need Help??


in reply to Re: check for square-number with a regex
in thread check for square-number with a regex

this solution is wrong because of two reasons:

  • the powers for each prime divisors are not necessarily the same
  • I am describing the numbers of the form p*22+q*32 instead of 22k32k

any other arguments in the post are flawed because of this.and mainly the fact that an arbitrary power can't really be expressed by the regex(except for hardcoded values like

(1{4}){9}/ means 36 but that's far from what is needed here )

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://803157]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (2)
As of 2024-04-26 00:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found