d2jsp
Log InRegister
d2jsp Forums > Other Games > Archived Games > Heroes of Newerth > General Hon Chat
Prev1247524762477247824793161Next
Add Reply New Topic New Poll
Member
Posts: 61,418
Joined: Nov 21 2006
Gold: Locked
Feb 8 2012 05:34pm
Quote (sMACKTRiCKz @ 8 Feb 2012 17:23)
what is it? not sure if can help


ok i have an algorithm for finding all prime numbers up to a number n
i create an array of boolean values with n indices, each element being initially true (the array being that if A(n) is true, then n is a prime number)
then i switch values of 2, then 3, 5, 7, ... x, x <= sqrt(n)
so anyway this is really fast, and it takes about 10 seconds to get a list of primers under Integer.MAX_VALUE in java
but i want to go further without allocating extra memory to the java program during runtime, so i've been trying to think of a way that i can hax it to where i don't need more memory, but i'm having trouble
do you think I should try something funky like 2 arrays with max_value/2 elements, then toss array 1 in the dumpster when it's already written all elements from that array into a file, then use the memory array 1 cleared up and do something weird, like newArray at index i is, in reality, x*max_value + i?
or can you think of something better?

This post was edited by Ectasy on Feb 8 2012 05:35pm
Member
Posts: 27,069
Joined: Sep 12 2008
Gold: 0.00
Feb 8 2012 05:50pm
this is my highest rated comment on reddit so far

phil is a talentless hack who only got hired because he sucked the dicks of the people in charge
Member
Posts: 20,716
Joined: Jul 9 2007
Gold: 0.51
Feb 8 2012 05:53pm
Quote (prickster @ Feb 8 2012 06:50pm)
this is my highest rated comment on reddit so far

phil is a talentless hack who only got hired because he sucked the dicks of the people in charge


what jersey shore is to white girls, hon drama is to rickster.
Member
Posts: 21,643
Joined: Jun 14 2006
Gold: 2,310.27
Feb 8 2012 08:00pm
60 mmr left to 1900

wonder if ill manage it
Member
Posts: 15,932
Joined: Nov 25 2006
Gold: 32.20
Feb 8 2012 08:54pm
Quote (ImoK @ Feb 8 2012 07:00pm)
60 mmr left to 1900

wonder if ill manage it


ur big
Member
Posts: 6,777
Joined: Jun 30 2008
Gold: 1,110.60
Feb 8 2012 09:46pm
Quote (xDooMx @ Feb 8 2012 10:54pm)
ur big


that's what he said when i slipped it up his ass








oop
Member
Posts: 27,069
Joined: Sep 12 2008
Gold: 0.00
Feb 8 2012 10:31pm
s2 going to hire another kid to help with balance

http://www.onrpg.com/MMO/Heroes-of-Newerth/interview/HoN-Interview-New-Game-Mode-in-the-Works

Quote
In line with this, we are currently in the process of growing our balance team.
Member
Posts: 13,126
Joined: Jun 24 2008
Gold: 40.00
Warn: 50%
Feb 9 2012 04:27am
Prickster is a bitch <3
Member
Posts: 20,716
Joined: Jul 9 2007
Gold: 0.51
Feb 9 2012 07:46am
Quote (banana_lover @ Feb 9 2012 05:27am)
Prickster is a bitch <3


I think rick is the only one who cares about the direction hon is taking.
Member
Posts: 13,126
Joined: Jun 24 2008
Gold: 40.00
Warn: 50%
Feb 9 2012 07:51am
Quote (garbo @ Feb 9 2012 05:46am)
I think rick is the only one who cares about the direction hon is taking.


I kinda care/kinda don't. I just play to play. I don't mind any updates. I also don't get why people whine about them. :/
Go Back To Heroes of Newerth Topic List
Prev1247524762477247824793161Next
Add Reply New Topic New Poll