![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Join Date: Dec 2002
Location: Austin, TX
Posts: 2,115
|
GFY: Math Challenge #2
I'm not gonna make it a night of brain teasers. This is the last one I post.
Ok. Someone wanted another. So here goes. Pick an integer where four times that number is equal to the original integer whose numbers are reversed. For example: WXYZ * 4 = ZYXW NOTE: I'm not saying that this integer is 4 digits long. It could be any length. Good luck. <BR><BR><BR><BR><BR><BR><BR> <BR><BR><BR><BR><BR><BR><BR> <BR><BR><BR><BR><BR><BR><BR>
__________________
1monkey0cup.com |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Guest
Posts: n/a
|
holy fuck, this could be an all-nighter
|
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Will code for food...
Join Date: Apr 2001
Location: Buckeye, AZ
Posts: 8,496
|
"0" is one possible answer
was it supposed to be a non-negative non-zero integer?
__________________
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Join Date: Mar 2002
Posts: 317
|
219978 X 4 = 879912
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 | |
Confirmed User
Join Date: Dec 2002
Location: Austin, TX
Posts: 2,115
|
Quote:
There are two other answers too that are smaller integers. Can you get them?
__________________
1monkey0cup.com |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 | |
Guest
Posts: n/a
|
Quote:
show me the script? |
|
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
I need a beer
![]() Industry Role:
Join Date: Jun 2002
Location: ♠ Toiletville ♠
Posts: 133,944
|
none - the hun gets revenue from pre-paid gallery placements on the top 15 spaces and banners. the rest of thegalleries are free placements.
![]()
__________________
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
Confirmed User
Industry Role:
Join Date: Feb 2002
Location: California
Posts: 7,444
|
0 through 9
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 | |
Confirmed User
Join Date: Mar 2002
Posts: 317
|
Quote:
1 x 4 = 4 which is not 1 reversed 2 x 4 = 8 which is not 2 reversed etc. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 | |
Confirmed User
Join Date: Dec 2002
Location: Austin, TX
Posts: 2,115
|
Quote:
Give up?
__________________
1monkey0cup.com |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 |
Guest
Posts: n/a
|
for sure I give up,
I just want to know what kind of script would solve that question =) |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 |
Confirmed User
Join Date: Mar 2002
Posts: 317
|
I'll post perl source either today or tomorrow. Not that difficult.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#13 | |
Confirmed User
Join Date: Dec 2002
Location: Austin, TX
Posts: 2,115
|
Quote:
<pre> for($i=0; $i<999999; ++$i){ if(checkNum($i)){ print "ANSWER IS $i\n"; #exit(1); } } sub checkNum{ $num = shift; $num2 = ""; for($j=0; $j<=length($num); ++$j){ $num2 .= substr($num, length($num)-$j, 1); } if( ($num*4) hahahaha ($num2*1) ){ return 1; } return 0; } </pre> This will print the 4 answers PS: That "hahaha" is the "= =" without the space
__________________
1monkey0cup.com |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#14 |
Confirmed User
Join Date: May 2002
Location: Calgary, Canada
Posts: 1,342
|
2178
21978 219978 amateurs
__________________
<b><a href="http://www.hotlinkprotector.com"><font color="yellow">Hotlink Protector</font></a> - Protect all your file types from hotlinking the professional way. <br> See a demo <a href="http://www.hotlinkprotector.com/demo.html"><font color="yellow">here</font></a>, and testimonials <a href="http://www.hotlinkprotector.com/testimonials.html"><font color="yellow">here</font></a><br>ICQ: 146423631 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#15 |
Confirmed User
Join Date: May 2002
Location: Calgary, Canada
Posts: 1,342
|
One minute VB code:
Code:
Dim zNew As Variant For x = 1 To 500000 zNew = x * 4 If StrReverse(zNew) = x Then Debug.Print x End If Next
__________________
<b><a href="http://www.hotlinkprotector.com"><font color="yellow">Hotlink Protector</font></a> - Protect all your file types from hotlinking the professional way. <br> See a demo <a href="http://www.hotlinkprotector.com/demo.html"><font color="yellow">here</font></a>, and testimonials <a href="http://www.hotlinkprotector.com/testimonials.html"><font color="yellow">here</font></a><br>ICQ: 146423631 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#16 | |
Confirmed User
Join Date: Dec 2002
Location: Austin, TX
Posts: 2,115
|
Quote:
__________________
1monkey0cup.com |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#17 |
Will code for food...
Join Date: Apr 2001
Location: Buckeye, AZ
Posts: 8,496
|
2178
21978 219978 2199978 21999978 219999978 2199999978 etc..
__________________
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#18 |
Will code for food...
Join Date: Apr 2001
Location: Buckeye, AZ
Posts: 8,496
|
shit, micheal beat me
![]()
__________________
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#19 | |
Confirmed User
Join Date: May 2002
Location: Calgary, Canada
Posts: 1,342
|
Quote:
![]()
__________________
<b><a href="http://www.hotlinkprotector.com"><font color="yellow">Hotlink Protector</font></a> - Protect all your file types from hotlinking the professional way. <br> See a demo <a href="http://www.hotlinkprotector.com/demo.html"><font color="yellow">here</font></a>, and testimonials <a href="http://www.hotlinkprotector.com/testimonials.html"><font color="yellow">here</font></a><br>ICQ: 146423631 |
|
![]() |
![]() ![]() ![]() ![]() ![]() |