The Geek Forum

  • May 10, 2024, 03:06:55 AM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

Due to the prolific nature of these forums, poster aggression is advised.

*

Recent Forum Posts

Shout Box

Members
Stats
  • Total Posts: 129621
  • Total Topics: 7185
  • Online Today: 145
  • Online Ever: 1013
  • (January 12, 2023, 01:18:11 AM)

Author Topic: Number Generator  (Read 3903 times)

Primal

  • Annoying Newbie
  • *
  • Coolio Points: +0/-0
  • Offline Offline
  • Posts: 29
    • View Profile
Number Generator
« on: November 16, 2002, 09:36:13 AM »

Does anyone know how to program a number generator that generates triangular, cubed and squared numbers that are the same, in any programming language. Or even if you know of an existing program that does this for you.

I don't expect people here to spoonfeed me information, I was just hoping one of you might help me out this once.

If not you can flame me if you wish because this post was perhaps not appropriate for this forum or board.
Logged
Let the darkness rise from the depths of your soul and mind and envelope you in a cloud of your own torment.
--
Unknown

HeavyJay

  • Hacker
  • ****
  • Coolio Points: +72/-1
  • Offline Offline
  • Posts: 1500
  • Gorn Tamer
    • View Profile
Number Generator
« Reply #1 on: November 16, 2002, 03:40:48 PM »

YOU STUPID SHIT-EATING SON OF A FUCK!! I'M GONNA FLAME YOU TIL I'M BLUE IN THE GODDAMN FACE!  

Just kidding.

I can't give you any specifics, but programs like that exist.  I used to toy around with BASIC, and that was one of the first things I learned.  Don't ask me how, this was a while ago.
Logged
"Don't just eat that hamburger, eat the HELL out of it!" -- JR "Bob" Dobbs

hob goblin

  • Professional Blogger
  • ***
  • Coolio Points: +2/-2
  • Offline Offline
  • Posts: 651
    • View Profile
    • http://www.ice-on-fire.net
Number Generator
« Reply #2 on: November 16, 2002, 06:10:09 PM »

triangular?

i could definantly do it in PHP, probably C++, and maybe even Java

BASIC eh? I could do it in TI-Basic (calculator programming)
Logged

Banshee

  • Geek
  • ****
  • Coolio Points: +106/-3
  • Offline Offline
  • Gender: Male
  • Posts: 967
  • Baby-Eater
    • View Profile
    • A Shadow Priest
Number Generator
« Reply #3 on: November 16, 2002, 11:48:53 PM »

On a related subject, I wrote a program that found prime numbers in Java. Pretty neat, especially since you practically need a Cray-1000 to go above a few billion. I was toying with the idea of loading it onto a local server and setting it to run in a few simultaneous processes to really eat up some Ethernet cables. W00t!
Logged
"Dear pete, lol. U r dum." - Bobert

Primal

  • Annoying Newbie
  • *
  • Coolio Points: +0/-0
  • Offline Offline
  • Posts: 29
    • View Profile
Number Generator
« Reply #4 on: November 17, 2002, 09:34:41 AM »

So would one of you mind sending me some source code, I'l compile it (don't try the old trojan source code exploit trick, I'm gonna check the code :-D).

Goblin, trianhular numbers are numbers that if that number of dots is arranged properly can form the shape of a triangle, like the pool balls in the triangle.
    For example
1                  .
3                 . .
6                . . .
10             . . . .
15            . . . . .


You get it, triangular numbers are a pretty basic mathematical principle, I think the formula

(n+1)squared -(n+1)
------------------------
            2

Generates triangular numbers but I'm not sure
Logged
Let the darkness rise from the depths of your soul and mind and envelope you in a cloud of your own torment.
--
Unknown

Primal

  • Annoying Newbie
  • *
  • Coolio Points: +0/-0
  • Offline Offline
  • Posts: 29
    • View Profile
Number Generator
« Reply #5 on: November 17, 2002, 09:40:29 AM »

OK The thing with the dots didn't work how I wanted it to but you get the point, I hope
Logged
Let the darkness rise from the depths of your soul and mind and envelope you in a cloud of your own torment.
--
Unknown

Ra.

  • Annoying Newbie
  • *
  • Coolio Points: +0/-0
  • Offline Offline
  • Posts: 1
    • View Profile
    • http://GayFlamers.com
Number Generator
« Reply #6 on: November 19, 2002, 09:39:13 PM »

Yeah, Im actually writing one of those in VB classes.  I'll go ahead and post it when/if I do it.
Logged
Damn I wish Wonder Woman was real. *Sigh

Primal

  • Annoying Newbie
  • *
  • Coolio Points: +0/-0
  • Offline Offline
  • Posts: 29
    • View Profile
Number Generator
« Reply #7 on: November 20, 2002, 11:27:51 AM »

Thanks Ra.
Logged
Let the darkness rise from the depths of your soul and mind and envelope you in a cloud of your own torment.
--
Unknown

HeavyJay

  • Hacker
  • ****
  • Coolio Points: +72/-1
  • Offline Offline
  • Posts: 1500
  • Gorn Tamer
    • View Profile
Number Generator
« Reply #8 on: November 25, 2002, 05:41:27 AM »

I'm learning C++, and the way things look, they're all possible.  That doesn't mean I know how to do them, but they're all possible  :D
Logged
"Don't just eat that hamburger, eat the HELL out of it!" -- JR "Bob" Dobbs

Primal

  • Annoying Newbie
  • *
  • Coolio Points: +0/-0
  • Offline Offline
  • Posts: 29
    • View Profile
Number Generator
« Reply #9 on: November 25, 2002, 10:48:20 AM »

Everythings possible but normally people can't be bothered to try something impossible whole-heartedly, the people who can be bothered are th inventors, the artists and the genius's of society, the people who can't be bothered are...
well...
me
Logged
Let the darkness rise from the depths of your soul and mind and envelope you in a cloud of your own torment.
--
Unknown

Cyber_Sniper

  • Jail Bait
  • *
  • Coolio Points: +21/-0
  • Offline Offline
  • Gender: Male
  • Posts: 160
    • View Profile
    • http://msdn.microsoft.com
Number Generator
« Reply #10 on: December 06, 2002, 08:02:39 AM »

I could whip that up in C++ in no time at all.  But I'm not going to do it for you.  I'll give you some hints if you want but you will have to do the hard work yourself its the only way you will learn.

Demosthenes

  • Evil Ex-HN Moderator
  • Administrator
  • Hacker
  • *
  • Coolio Points: +567/-72
  • Offline Offline
  • Gender: Male
  • Posts: 9904
  • Just try me. See what happens.
    • View Profile
    • Zombo
Number Generator
« Reply #11 on: December 06, 2002, 11:34:51 AM »

Hiya Cyber... long time no see!  How're things going, working for the enemy? ;)
Logged

Coolio Points: 89,000,998,776,554,211,222
Detta Puzzle Points: 45

Banning forum idiots since 2001

hob goblin

  • Professional Blogger
  • ***
  • Coolio Points: +2/-2
  • Offline Offline
  • Posts: 651
    • View Profile
    • http://www.ice-on-fire.net
Number Generator
« Reply #12 on: December 06, 2002, 02:59:36 PM »

So you what exactly do you want this program to do?

Input a number, and print it's square, cube, and triangle?
Logged

Cyber_Sniper

  • Jail Bait
  • *
  • Coolio Points: +21/-0
  • Offline Offline
  • Gender: Male
  • Posts: 160
    • View Profile
    • http://msdn.microsoft.com
Number Generator
« Reply #13 on: December 07, 2002, 08:53:28 AM »

Certainly am Demo.  Its cool only six months left.  BUt Im getting 2 MCP of them after xmas.
Hey whats up with the HN forums they are either, not working, or are so slow that might as well not be working?

Demosthenes

  • Evil Ex-HN Moderator
  • Administrator
  • Hacker
  • *
  • Coolio Points: +567/-72
  • Offline Offline
  • Gender: Male
  • Posts: 9904
  • Just try me. See what happens.
    • View Profile
    • Zombo
Number Generator
« Reply #14 on: December 08, 2002, 02:07:21 PM »

The hosting is A.F.U.  CG's got a new forum up and running (sort of), but it looks like he's having trouble getting the old database transferred over.
Logged

Coolio Points: 89,000,998,776,554,211,222
Detta Puzzle Points: 45

Banning forum idiots since 2001