Pink Poogle Toy Forum

The official community of Pink Poogle Toy
Main Site
NeoDex
It is currently Sat Apr 11, 2026 6:59 pm

All times are UTC




Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 27 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Lenny Conundrum #117
PostPosted: Wed May 18, 2005 8:05 pm 
PPT Trainee
PPT Trainee
User avatar

Posts: 749
Joined: Mon May 31, 2004 9:14 am
Congratulations! You have guessed correctly in the Lenny Conundrum game (Round 116). We have given you a Count Von Roo Pinata, an Avatar, and 277 NP!


still no gold upgrade for me..


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 18, 2005 8:29 pm 
PPT God
PPT God
User avatar

Posts: 1047
Joined: Tue Jun 01, 2004 6:17 pm
Location: Right here
Darnit, I didn't even get the pinata... guess this one was easier than I thought.

Anyways, for any who might find it interesting, this was what I did:

#include <iostream.h>
#include <math.h>

int sumNums(int i);

void main(void)
{
for(int i=100000; i<=999999; i++)
{
if((pow(i , 1.0/2.0)) - int(pow(i , 1.0/2.0)) == 0 && (pow(i , 1.0/3.0) - int(pow(i , 1.0/3.0)) == 0) && sumNums(i) == 43)
{
cout << i << endl;
}

else if((pow(i , 1.0/2.0) - int(pow(i , 1.0/2.0)) == 0) && (i < 500000) && sumNums(i) == 43)
{
cout << i << endl;
}

else if((pow(i , 1.0/3.0) - int(pow(i , 1.0/3.0)) == 0) && (i < 500000) && sumNums(i) == 43)
{
cout << i << endl;
}
}


//int i = 234578;
//cout << i % 10 << "\t" << ((i % 100) - (i % 10)) / 10 << "\t" << ((i % 1000) - (i % 100)) / 100 << "\t";
//cout << ((i % 10000) - (i % 1000)) / 1000 << "\t" << ((i % 100000) - (i % 10000)) / 10000 << "\t" << ((i % 1000000) - (i % 100000)) / 100000 << endl;
//cout << (i % 10) + (((i % 100) - (i % 10)) / 10) + (((i % 1000) - (i % 100)) / 100) + (((i % 10000) - (i % 1000)) / 1000) + (((i % 100000) - (i % 10000)) / 10000) + (((i % 1000000) - (i % 100000)) / 100000) << endl;
//cout << sumNums(i) << endl;

//if((i % 10) + (((i % 100) - (i % 10)) / 10) + (((i % 1000) - (i % 100)) / 100) + (((i % 10000) - (i % 1000)) / 1000) + (((i % 100000) - (i % 10000)) / 10000) + (((i % 1000000) - (i % 100000)) / 100000) == 43)
}

int sumNums(int i)
{
return ((i % 10) + (((i % 100) - (i % 10)) / 10) + (((i % 1000) - (i % 100)) / 100) + (((i % 10000) - (i % 1000)) / 1000) + (((i % 100000) - (i % 10000)) / 10000) + (((i % 1000000) - (i % 100000)) / 100000));
}


(Shrunk to reduce size)

It looks sloppy, but it works fine and dandy. :)


Top
 Profile  
 
 Post subject: Re: Lenny Conundrum #117
PostPosted: Wed May 18, 2005 8:36 pm 
PPT Student
PPT Student
User avatar

Posts: 265
Joined: Wed Mar 16, 2005 9:50 pm
Location: 9th Heaven
apranum wrote:
Congratulations! You have guessed correctly in the Lenny Conundrum game (Round 116). We have given you a Count Von Roo Pinata, an Avatar, and 277 NP!


still no gold upgrade for me..


I didn't realize the prize item was Count Von Roo Pinata :P guess I was preoccupied with the calculations instead :D


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 18, 2005 10:31 pm 
PPT God
PPT God
User avatar

Posts: 1225
Joined: Wed Nov 24, 2004 2:41 pm
_B4U_ wrote:
Darnit, I didn't even get the pinata... guess this one was easier than I thought.

Anyways, for any who might find it interesting, this was what I did:

#include <iostream.h>
#include <math.h>

int sumNums(int i);

void main(void)
{
for(int i=100000; i<=999999; i++)
{
if((pow(i , 1.0/2.0)) - int(pow(i , 1.0/2.0)) == 0 && (pow(i , 1.0/3.0) - int(pow(i , 1.0/3.0)) == 0) && sumNums(i) == 43)
{
cout << i << endl;
}

else if((pow(i , 1.0/2.0) - int(pow(i , 1.0/2.0)) == 0) && (i < 500000) && sumNums(i) == 43)
{
cout << i << endl;
}

else if((pow(i , 1.0/3.0) - int(pow(i , 1.0/3.0)) == 0) && (i < 500000) && sumNums(i) == 43)
{
cout << i << endl;
}
}


//int i = 234578;
//cout << i % 10 << "\t" << ((i % 100) - (i % 10)) / 10 << "\t" << ((i % 1000) - (i % 100)) / 100 << "\t";
//cout << ((i % 10000) - (i % 1000)) / 1000 << "\t" << ((i % 100000) - (i % 10000)) / 10000 << "\t" << ((i % 1000000) - (i % 100000)) / 100000 << endl;
//cout << (i % 10) + (((i % 100) - (i % 10)) / 10) + (((i % 1000) - (i % 100)) / 100) + (((i % 10000) - (i % 1000)) / 1000) + (((i % 100000) - (i % 10000)) / 10000) + (((i % 1000000) - (i % 100000)) / 100000) << endl;
//cout << sumNums(i) << endl;

//if((i % 10) + (((i % 100) - (i % 10)) / 10) + (((i % 1000) - (i % 100)) / 100) + (((i % 10000) - (i % 1000)) / 1000) + (((i % 100000) - (i % 10000)) / 10000) + (((i % 1000000) - (i % 100000)) / 100000) == 43)
}

int sumNums(int i)
{
return ((i % 10) + (((i % 100) - (i % 10)) / 10) + (((i % 1000) - (i % 100)) / 100) + (((i % 10000) - (i % 1000)) / 1000) + (((i % 100000) - (i % 10000)) / 10000) + (((i % 1000000) - (i % 100000)) / 100000));
}


(Shrunk to reduce size)

It looks sloppy, but it works fine and dandy. :)


Your add up the digits looks about as ugly as my add up the digits formula I used in EXCEL. :)

But again, we weren't being graded on the way we got the answer ... just the answer.

It's too bad people spilled the beans on the boards on this one. The payout could have been much better. No item prize for me, either. I need to figure out a way to be notified when the new LC or MP is up. :)


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 19, 2005 4:53 am 
PPT Student
PPT Student
User avatar

Posts: 265
Joined: Wed Mar 16, 2005 9:50 pm
Location: 9th Heaven
XenaAndGabrielle wrote:
_B4U_ wrote:
Darnit, I didn't even get the pinata... guess this one was easier than I thought.

Anyways, for any who might find it interesting, this was what I did:

#include <iostream.h>
#include <math.h>

int sumNums(int i);

void main(void)
{
for(int i=100000; i<=999999; i++)
{
if((pow(i , 1.0/2.0)) - int(pow(i , 1.0/2.0)) == 0 && (pow(i , 1.0/3.0) - int(pow(i , 1.0/3.0)) == 0) && sumNums(i) == 43)
{
cout << i << endl;
}

else if((pow(i , 1.0/2.0) - int(pow(i , 1.0/2.0)) == 0) && (i < 500000) && sumNums(i) == 43)
{
cout << i << endl;
}

else if((pow(i , 1.0/3.0) - int(pow(i , 1.0/3.0)) == 0) && (i < 500000) && sumNums(i) == 43)
{
cout << i << endl;
}
}


//int i = 234578;
//cout << i % 10 << "\t" << ((i % 100) - (i % 10)) / 10 << "\t" << ((i % 1000) - (i % 100)) / 100 << "\t";
//cout << ((i % 10000) - (i % 1000)) / 1000 << "\t" << ((i % 100000) - (i % 10000)) / 10000 << "\t" << ((i % 1000000) - (i % 100000)) / 100000 << endl;
//cout << (i % 10) + (((i % 100) - (i % 10)) / 10) + (((i % 1000) - (i % 100)) / 100) + (((i % 10000) - (i % 1000)) / 1000) + (((i % 100000) - (i % 10000)) / 10000) + (((i % 1000000) - (i % 100000)) / 100000) << endl;
//cout << sumNums(i) << endl;

//if((i % 10) + (((i % 100) - (i % 10)) / 10) + (((i % 1000) - (i % 100)) / 100) + (((i % 10000) - (i % 1000)) / 1000) + (((i % 100000) - (i % 10000)) / 10000) + (((i % 1000000) - (i % 100000)) / 100000) == 43)
}

int sumNums(int i)
{
return ((i % 10) + (((i % 100) - (i % 10)) / 10) + (((i % 1000) - (i % 100)) / 100) + (((i % 10000) - (i % 1000)) / 1000) + (((i % 100000) - (i % 10000)) / 10000) + (((i % 1000000) - (i % 100000)) / 100000));
}


(Shrunk to reduce size)

It looks sloppy, but it works fine and dandy. :)


Your add up the digits looks about as ugly as my add up the digits formula I used in EXCEL. :)

But again, we weren't being graded on the way we got the answer ... just the answer.

It's too bad people spilled the beans on the boards on this one. The payout could have been much better. No item prize for me, either. I need to figure out a way to be notified when the new LC or MP is up. :)


Xena,my friend keeps on refreshing the news page for latest news :D sounds crazy but true.I don't do that simply because I don't have the time to do so - work!


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 19, 2005 1:14 pm 
PPT Student
PPT Student
User avatar

Posts: 273
Joined: Wed Sep 15, 2004 5:45 pm
Location: Quit PPT: 20/6/05
I'm furious! :x After all that hard work, I didn't get ANYTHING!!! :x

What the heck?!?!? :x


Last edited by LupetyLupe on Thu May 19, 2005 1:24 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Thu May 19, 2005 1:21 pm 
PPT Toddler
PPT Toddler
User avatar

Posts: 119
Joined: Mon May 16, 2005 10:29 am
Location: UK
LupetyLupe wrote:
I'm furious! :x After all that hard work, I didn't get ANYTHING!!! :x

I put -edited- because:

1)It's a square
2)It's under 500000
3)Numbers add to 43

What the heck?!?!? :x


That's what i put as well, and haven't gotten anything. However, I just went to the LC page and for me it isn't closed yet, maybe there is a glitch somewhere and we get the NPs when the news comes out. Maybe they are too preoccupied with the upcoming war and haven't dished out all the prizes yet and not closed the competition in some countries.


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 19, 2005 1:24 pm 
PPT Student
PPT Student
User avatar

Posts: 273
Joined: Wed Sep 15, 2004 5:45 pm
Location: Quit PPT: 20/6/05
Oh my gosh! You're right! :o

QUICK!!!!!!!!! EDIT!!!!!!!!!


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 19, 2005 3:25 pm 
Honorary Member
Honorary Member
User avatar

Posts: 7445
Joined: Mon May 31, 2004 9:10 am
Location: Frankfort, NY USA (set by Nikita)
Gender: Female
I got it, LupetyLupe. :) I wonder why it looks like the answer box is still open? O.o Even if someone submitted the answer now, the prizes are already out and it's been judged. (according to the first post)


Image Image
<3 Divas rock! Click to join. <3


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 19, 2005 5:43 pm 
PPT God
PPT God
User avatar

Posts: 1225
Joined: Wed Nov 24, 2004 2:41 pm
New One is out!

----
First, take the number of shops in Brightvale. Multiply that by the number of different cards in the Curse of Maraqua TCG set. Then multiply by the number of different "food" colours you can paint a Chia. Finally, multiply the whole thing by the number of prime numbers between one and a million that become a perfect square if you add 1 to them.


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 19, 2005 5:48 pm 
Beyond Godly
Beyond Godly

Posts: 4855
Joined: Wed Jul 07, 2004 12:58 pm
Location: In my room listening to Hardcore Metal Christian music.
:S I wrote a program to find all the prime numbers, but I don't know how to do the "add one" part.


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 19, 2005 5:59 pm 
PPT God
PPT God
User avatar

Posts: 1225
Joined: Wed Nov 24, 2004 2:41 pm
o_0 wrote:
:S I wrote a program to find all the prime numbers, but I don't know how to do the "add one" part.


I've come up with 78,499 different primes between 1 and 1 million.
Can anyone else confirm this number with me?


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 19, 2005 6:11 pm 
Beyond Godly
Beyond Godly

Posts: 4855
Joined: Wed Jul 07, 2004 12:58 pm
Location: In my room listening to Hardcore Metal Christian music.
XenaAndGabrielle wrote:
o_0 wrote:
:S I wrote a program to find all the prime numbers, but I don't know how to do the "add one" part.


I've come up with 78,499 different primes between 1 and 1 million.
Can anyone else confirm this number with me?


I believe I got that number, or at least something similar to it.


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 19, 2005 6:38 pm 
PPT God
PPT God
User avatar

Posts: 1225
Joined: Wed Nov 24, 2004 2:41 pm
o_0 wrote:
XenaAndGabrielle wrote:
o_0 wrote:
:S I wrote a program to find all the prime numbers, but I don't know how to do the "add one" part.


I've come up with 78,499 different primes between 1 and 1 million.
Can anyone else confirm this number with me?


I believe I got that number, or at least something similar to it.


similar to it wasn't exactly the confirmation I was looking for. ;) I'll hope it was right.

Edit: Darn, I missed a Food Chia. Looks like I will get the answer wrong. :( Who knows ... they will probably decide to count "snot" or "snow" as a food ... just to decrease the payout.


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 19, 2005 7:49 pm 
Beyond Godly
Beyond Godly
User avatar

Posts: 4593
Joined: Wed Aug 25, 2004 8:55 pm
Location: Oregon Outback
bah, a research question.


Image Image Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 27 posts ]  Go to page 1, 2  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 117 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group