find the 2^^^^^^^^2th prime number using a very slow algorithm

Bogoprime.

EDIT: source code:

Code:
from random import randint
 
def bogoprime(n):
    def prime_test(m):
        prime = True
        for i in range(2, arr[n-1]):
            if m % i == 0:
                if m != i:
                    prime = False
        return prime
 
    def prime_list():
        sorted_primes = True
        for i in range(n-1):
            for j in range(arr[i]+1, arr[i+1]):
                if prime_test(j):
                    sorted_primes = False
            if not prime_test(arr[i+1]):
                sorted_primes = False
        return sorted_primes
                    
    arr = bogoarr(n)
    while not prime_list():
        arr = bogoarr(n)
    return arr
 
 
def bogoarr(n):
    def PI(arr):
        product = 1
        for i in arr:
            product *= i
        return product
    arr = [2]
    for i in range(n-1):
        arr.append(randint(arr[i]+1, PI(arr)+1))
    return arr

Recursively generate an array of n numbers:
  1. Base case: [2]
  2. Inductive step: randomly select a number strictly greater than the last element of the array and at most the product of the elements of the array plus 1 and add it to the array.

Notice the similarity to the classical proof that the primes are unbounded above; this shows that the array may contain the nth prime.

For each entry of the array, test whether it's the next prime:
  1. For every m between the previous entry and the current entry, test for primality*.
  2. Test the current entry for primality using the same method

If the array doesn't contain the first n primes and no other entries, rinse, repeat by generating a new array.

*
prime = True
for i in range(2, a[n-1]):
if m % i == 0:​
if m != i:​
prime = False #edited because I forgot that Python booleans are uppercase​
return prime
 
Last edited:
Still catching up, but there is a good chance that the power will go out, so I'm posting this now while I still have the opportunity.

We've had a... polarizing update (head canon title is Youthsuit-gate 2: Minami is Now Goo) and there currently are hundreds of posts for me still to read including a bunch of people whom I have never seen before who are not just advocating but are actively voting for suicide... and said plan is winning. The other plans I've seen seem just as defeatist to me too. Are we really going to throw away over a year of enjoyable experiences just because we had one NPC die?

While I don't have the time at the moment to really contribute to the thread since I'm busy preparing for a funeral I'd really appreciate the opportunity to fully explain how I would resolve this situation without a retcon in the next voting period. I'll (well, 'should' planning fallacy and all that) have more free time as of Tuesday evening since said funeral is Monday and my previous obligations will no longer be an issue because.... well, "funeral" should give you an idea. We're going to need to hash out some new formats for plans and accept that bad things happen in game so we have to deal with the inconveniences, but this is far from game over in my book: Hazou is still alive and well.

Y'all need to chill; it is a game/rational simulation after all.

[X] Lore Update
 
Still catching up, but there is a good chance that the power will go out, so I'm posting this now while I still have the opportunity.

We've had a... polarizing update (head canon title is Youthsuit-gate 2: Minami is Now Goo) and there currently are hundreds of posts for me still to read including a bunch of people whom I have never seen before who are not just advocating but are actively voting for suicide... and said plan is winning. The other plans I've seen seem just as defeatist to me too. Are we really going to throw away over a year of enjoyable experiences just because we had one NPC die?

While I don't have the time at the moment to really contribute to the thread since I'm busy preparing for a funeral I'd really appreciate the opportunity to fully explain how I would resolve this situation without a retcon in the next voting period. I'll (well, 'should' planning fallacy and all that) have more free time as of Tuesday evening since said funeral is Monday and my previous obligations will no longer be an issue because.... well, "funeral" should give you an idea. We're going to need to hash out some new formats for plans and accept that bad things happen in game so we have to deal with the inconveniences, but this is far from game over in my book: Hazou is still alive and well.

Y'all need to chill; it is a game/rational simulation after all.

[X] Lore Update
Retcon happened, we also voted that Hazou have more of an impact in how plans play out.
 
Have we ever tried using Seals for computation?
Like, maybe 1+1 or something simple like that? Is it theoretically possible?

If the computation is instant, that would have implications I think. Although how would it even work, I don't know.
We (the hivemind) don't know enough information about seals to answer this. Hazou certainly hasn't done any math in the story using seals.
 
[X] Action Plan: Deescalate, explain, deescalate

Not sure about the necessity of bringing up Hidden Swamp...but I'll stick with this one.
 
Bogoprime.

Recursively generate an array of n numbers:
  1. Base case: [2]
  2. Inductive step: randomly select a number strictly greater than the last element of the array and at most the product of the elements of the array plus 1 and add it to the array.

Notice the similarity to the classical proof that the primes are unbounded above; this shows that the array may contain the nth prime.

For each entry of the array, test whether it's the next prime:
  1. For every m between the previous entry and the current entry, test for primality*.
  2. Test the current entry for primality using the same method

If the array doesn't contain the first n primes and no other entries, rinse, repeat by generating a new array.

*
prime = True
for i in range(2, a[n]):
if m % i == 0:​
prime = False #edited because I forgot that Python booleans are uppercase​
return prime
We might actually be able to implement Quantum Bogosort!
Problem: Need to sort a list of numbers
Solution: Randomly shuffle the list. If it's not sorted, destroy the universe.

Thus, only universes where the list is sorted exist. Linear time sorting, woo!
 
Last edited:
Are you saying that you think the team should be using mist as smoke cover more often, or are you saying that Hazō did not give away the mist drain secret because Minami should have naturally assumed that the mist was just for concealment?

I am saying that the team should be using mist as smoke cover more often. Any time I have brought up the tactic of using a physical barrier to block line of sight to reacquire stealth bonus I have been shouted down as the methods I propose always seem to the people of the thread to expensive or to situational for us to reliably use or else that the people we are fighting would see through it anyway so what is the point. If I am remembering that wrong I apologize to the thread for this unfavorable characterization. I am of the mind where if you roll more dice you have a better chance of getting the result you want and a failed stealth roll in the middle of combat only means they don't get malus dice added.
 
There is an idea we could share with Noburi that... well, it wouldn't make up for revealing mist-draining to Minami (immediately), but it would make him a god on the battlefield.

That is to say, the potential ability to use Medical Ninjutsu through water or mist. I suspect it would take a significant amount more skill than he has in Vampiric Dew, but consider this: How long do you think it would take a doctor to kill you IRL if they wanted to? ...Now throw in Chakra Magic Doctor, only from range?

e: Oh, also, there is a mitigating factor in the opsec breach: Jiraiya is hokage and clan leader. I think it's safe to say that if he asks Minami not to spread knowledge of Noburi's techniques she'd abide by that.

(The captured-and-interrogated thing is just dumb, honestly; how in the hell isn't a technique like that known already? Is capturing enemy combatants that rare?)
 
Last edited:
[X] Action Plan: Deescalate, explain, deescalate

We have kagome saying that akatsuki is based in rain.

"What about Akatsuki?" he asked. "Who are they?"

"The greatest thorn in the Sage's side," Kagome-sensei said. "See, back in the days of yore, they were this group operating out of Rain. Bunch of dumb idealists. Only then they briefly got famous because some schmo wrote a book based on them. I read it myself. Cheap trash, but I guess the writer must have had a lot of pull, given how there were copies everywhere from Demon Country to the Kazekage's latrine.

"Thing is, the Sage didn't like Akatsuki's flavour of pacifism. Close enough to his to appeal to the same target audience, different enough to be competition. And it just so happens that around that time, he had to find a place for Dummy who was turning everyone into clones. So he chucked one problem at the other.

"Only he didn't figure on Hanzō of the Salamander. Hanzō was on Akatsuki's side, and he gave up his life to save the leaders. Used his super poison skills to block Dummy's cloning long enough for them to get out. Ever since then, Akatsuki have been these terrifying killer mercenaries, working for everyone under the sun except Leaf. They have no problem hiring missing-nin, and they control the underworld. The Sage has tried to crush them dozens of times, but they're hidden, they're mobile, they're stinking rich, and even if you force them into a fair fight, they go through jōnin like rice crackers."

According to Kagome, Akatsuki was based in Rain when they were just an activism group, but are now everywhere except Rain and by default are in well-hidden bases which they only use for so long before finding/making new ones in order to make sure no one finds them.
 
Well, first and foremost:
[X] Action Plan: Deescalate, explain, deescalate
sounds like an amazing plan. I'll also second changing the word 'friend' there to 'comrade' or 'ally'.

Second:
@eaglejarl , @Velorien , @OliWhail .
Thank you for running the quest. It's been fun to read, and I hope to enjoy reading it in the future. Thank you also for listening to the concerns of the players, and not paying too much attention to the people who'd rather be disrespectful than phrase their concerns politely.
 
Just as a note, but the appeal I have the plan making to Minami is supposed to have a few key points I thought might soften her anger. I'd like to talk explicitly about what's going on so that people can have a chance to comment and suggest better ways to accomplish the goals.

1. In the story we're telling, Hazou has been screwing up and revealing clan secrets out of a desire to do good for Hidden Leaf. He's been putting village ahead of clan, which while it might strike the clan kidz as wrong is at least an understandable motivation. It gives Minami a way to mentally model Hazou as someone who is trying hard to prove his loyalty to his new village, even at the cost of his clan, and recontextualizes what just happened as her getting caught in the midst of an intraclan dispute.

You might ask, is this true? Well as an after the fact explanation it at least makes a kind of sense. Frankly I think that all it will take for Hazou to believe it is for him to say it, as this is exactly how human beings tend to explain their own behavior to themselves after the fact. We pick a narrative that makes sense and decide that's why we acted like we did.

2. Given the hatred everyone has for missing ninja, I think the story of the Village Hidden in the Swamp is necessary to put the whole 'missing ninja' thing in context for Minami. If Inoue were here it would be a lot more awkward, but she's not, so I'm willing to essentially blame the missing-ninja thing on the treacherous jounin who forced us three genin to defect. It even has the advantage of being true, which while not strictly necessary, makes keeping the story straight a lot easier. The intent is to tell her that we aren't disloyal traitors, we weren't ungrateful, it was just that there was no way out and what would you have done?

Add on a bit of blatant suck-up at the end by stating that Leaf is better than Mist and we really want to believe in it. Which I think she will both recognize as sucking up and be affected by anyway, because you really, really want to believe when someone tells you that your way of life and home country was best all along.

3. Finally, a strong rebuke of Kagome is obviously necessary. Keiko already did that to some extent, but the problem is that her rebuke focused on the practical. She talked about why it was not a good idea. I want Hazou to stake out a position that it was wrong, and that murdering Minami is unacceptable behavior because the sacrifice of her life to protect clan secrets is not a trade Hazou is willing to make. Because, as he says, she is entirely innocent and had not asked to have these secrets shared with her.

I'm not sure that Minami will ever be able to rest easily around Kagome again, but she needs to believe that there will be no further attempts on her life because Hazou will not stand for it, not because he hasn't figured out how to get away with it.

EDIT: The main thing that could blow this up is if Minami isn't willing to listen to a long explanation and just attacks us, but... (shrug) I really don't know what to do about that. She's going to listen or she won't.
 
Last edited:
Just as a note, but the appeal I have the plan making to Minami is supposed to have a few key points I thought might soften her anger. I'd like to talk explicitly about what's going on so that people can have a chance to comment and suggest better ways to accomplish the goals.

1. In the story we're telling, Hazou has been screwing up and revealing clan secrets out of a desire to do good for Hidden Leaf. He's been putting village ahead of clan, which while it might strike the clan kidz as wrong is at least an understandable motivation. It gives Minami a way to mentally model Hazou as someone who is trying hard to prove his loyalty to his new village, even at the cost of his clan, and recontextualizes what just happened as her getting caught in the midst of an intraclan dispute.

You might ask, is this true? Well as an after the fact explanation it at least makes a kind of sense. Frankly I think that all it will take for Hazou to believe it is for him to say it, as this is exactly how human beings tend to explain their own behavior to themselves after the fact. We pick a narrative that makes sense and decide that's why we acted like we did.

2. Given the hatred everyone has for missing ninja, I think the story of the Village Hidden in the Swamp is necessary to put the whole 'missing ninja' thing in context for Minami. If Inoue were here it would be a lot more awkward, but she's not, so I'm willing to essentially blame the missing-ninja thing on the treacherous jounin who forced us three genin to defect. It even has the advantage of being true, which while not strictly necessary, makes keeping the story straight a lot easier. The intent is to tell her that we aren't disloyal traitors, we weren't ungrateful, it was just that there was no way out and what would you have done?

Add on a bit of blatant suck-up at the end by stating that Leaf is better than Mist and we really want to believe in it. Which I think she will both recognize as sucking up and be affected by anyway, because you really, really want to believe when someone tells you that your way of life and home country was best all along.

3. Finally, a strong rebuke of Kagome is obviously necessary. Keiko already did that to some extent, but the problem is that her rebuke focused on the practical. She talked about why it was not a good idea. I want Hazou to stake out a position that it was wrong, and that murdering Minami is unacceptable behavior because the sacrifice of her life to protect clan secrets is not a trade Hazou is willing to make. Because, as he says, she is entirely innocent and had not asked to have these secrets shared with her.

I'm not sure that Minami will ever be able to rest easily around Kagome again, but she needs to believe that there will be no further attempts on her life because Hazou will not stand for it, not because he hasn't figured out how to get away with it.

EDIT: The main thing that could blow this up is if Minami isn't willing to listen to a long explanation and just attacks us, but... (shrug) I really don't know what to do about that. She's going to listen or she won't.

Another point we can make is how Hazō thought that even killing the gangster was a morally wrong thing to do. No one deserves to die no matter how monsterous they are

Edit: If Minami decides to not talk and just attack she's basically committing suicide. The team might not be in total agreement but if Minami tries to kill anyone I would bet they would all attack her
 
Last edited:
We could always ask Minami if she would feel safer if Hazou and Kagome were drained to minimal chakra levels while they talked?
 
We could always ask Minami if she would feel safer if Hazou and Kagome were drained to minimal chakra levels while they talked?
Of course, she'd need to trust Noburi then :p Like, if she thinks we're evil masterminds out to convince her we're not evil masterminds, there's nothing we can do to convince her otherwise.
 
Of course, she'd need to trust Noburi then :p Like, if she thinks we're evil masterminds out to convince her we're not evil masterminds, there's nothing we can do to convince her otherwise.
Noburi ingratiated himself to her by 'defending' her against Hazou and Kagome.
Another point we can make is how Hazō thought that even killing the gangster was a morally wrong thing to do. No one deserves to die no matter how monsterous they are
This is a very good point and I think it should definitely be brought up.
 
We could always ask Minami if she would feel safer if Hazou and Kagome were drained to minimal chakra levels while they talked?

She's still in a prisoner dilemma. If she wants to kill us she has to wait and bide her time. Can't defect right now without dying.

Edit: Though if Minami does defect at any time she's basically becoming a missing nin because the hokage is our clan leader
 
Last edited:
I think she's going to try and take her own life? I'm not sure why I've got that impression, but it's how I first read it. Probably just the context it's in.
 
Last edited:
Edit: If Minami decides to not talk and just attack she's basically committing suicide. The team might not be in total agreement but if Minami tries to kill anyone I would bet they would all attack her

I guess that depends on how much of a combat advantage her bloodline prism gives her in an enclosed area like this. We have no idea what it does or how it works, so it's impossible to say how a fight would go down. I would guess it can create some kind of laser beam or something.

Another point we can make is how Hazō thought that even killing the gangster was a morally wrong thing to do. No one deserves to die no matter how monsterous they are

A little undercut by the fact that he protested... and then went along and handed the gangster over to be eaten anyway. I mean, obviously he wasn't that morally opposed.

Still, we know from the update that Minami is already weighing that in her opinion of Hazo.

We could always ask Minami if she would feel safer if Hazou and Kagome were drained to minimal chakra levels while they talked?

More than anything, I want to keep up some conversational momentum. A long pause while Noburi executes a chakra drain would leave too long for her mind to settle and the bad conclusions she's already arrived at to cement.
 
How many people has Hazou killed? Eight? The three genin in Let the Bodies Hit the Floor, the two civilians at the Inn, Jotaro and unnamed Kenjutsu jounin, and the gangster just now, right?

Maybe something to the effect of:

"I hate killing, okay?! There's seven -- now eight, after last village -- people that I'm responsible for the death of and almost every night I have nightmares about them. I get it, I have to sometimes, and I don't regret doing so when it was to save my team's lives, but that isn't what this was, Kagome. I'm not fighting for a world where people are killed for clan secrets! And I am sorry for that, Noburi -- you damned well should be upset at me. Kagome, I understand you have a hard time trusting people, and it's one thing for you to be cautious of people, lay mines around your sleeping bag -- hell, I'd even understand if you... [visibly composing self] pasted someone that surprised you. I won't... I won't support them killing you or putting you in a sweatshop, but you do need to understand that that this kind of thing has consequences."
 
How many people has Hazou killed? Eight? The three genin in Let the Bodies Hit the Floor, the two civilians at the Inn, Jotaro and unnamed Kenjutsu jounin, and the gangster just now, right?
This seems relevant: I think we can add Arikada to the list as well

Oh! Let's tally the deaths Hazou and our team are either directly or indirectly responsible for!

Hazou Direct kills:
3 missing-nin genin
2 civilians used for messengers
1 jounin bodyguard
1 chunin
Unknown numbers of Hot Springs customers (ground floor RIP)

Team direct kills:
A dozen? VHitM ninja
3 Leaf genin
1 Liberator Jounin
Some? Pursuit ninja from Leaf and Hot Springs

Team indirect kills:
Village Hidden in the Swamp (23? ninja)
Liberator village (30? ninja)

And hey, if we successfully escape, we may be able to add "Rice Country" to the list of indirect kills.

Edit: looks like we're off to a great start on mission "stop ninja from killing" :p
 
Welcome to the Dark Side.

Welcome? Please, I've been here all along.

We have no idea what it does or how it works, so it's impossible to say how a fight would go down.

Yeah, no idea whatsoever.

I would guess it can create some kind of laser beam or something.

That is definitely a guess.

This is too fun. I find myself envious of EJ's trolling opportunities.
 
Back
Top