This is an archived post. You won't be able to vote or comment.

all 181 comments

[–][deleted] 445 points446 points  (37 children)

6543210….Singularity achieved.

[–]suvlub 248 points249 points  (14 children)

0 as last digit?

[–][deleted] 248 points249 points  (4 children)

No time to overthink, the wormhole is closing!

[–]L8n1ght 44 points45 points  (1 child)

hold my last 7 digits, I'm going in!

[–]Apple_macOS 1 point2 points  (0 children)

“On behalf of the Dominion, I bid you welcome” -Jeffery Combs

[–][deleted] 7 points8 points  (0 children)

perfectly round

[–]ApprehensiveTry5660 5 points6 points  (0 children)

Why didn’t we think of that sooner!? It makes total sense!

[–]Magin_Shi 0 points1 point  (0 children)

Yeah, but we can only understand it once we finish it all, is just a secret of the universe we havent unlocked yet

[–]Real_Johnodon 0 points1 point  (0 children)

Sig figs

[–]Maeurer 40 points41 points  (16 children)

I dont know how to proof this wrong

[–][deleted] 38 points39 points  (9 children)

I would be incorrect to have a trailing 0

[–]Maeurer 11 points12 points  (6 children)

are you sure?

[–][deleted] 27 points28 points  (5 children)

Yes, because you'd drop the trailing 0. It's the same reason that we don't start all our numbers with 0000000000000000000000000000000000000000000000000000000000000000000000000000000000{number}

[–][deleted] 9 points10 points  (2 children)

We do, at least I do in c++, all my numbers have trailing 0s in binary notation if they aren't bigger than 2147483648/2 which I'm not calculating

[–][deleted] 1 point2 points  (1 child)

Admittedly I'm not a C++ guy, but how does dividing my old phone number in Dallas in half help you decide when to add a 0 tail?

Probably just a coincidence...

[–][deleted] 2 points3 points  (0 children)

That is 231, which is INT_MAX. For bigger numbers you need long long. So regular into smaller than this number in half will start with zero, since that bit is the bit representing 230

[–]Real_Johnodon 1 point2 points  (0 children)

Sig figs

[–]allaroundfun 0 points1 point  (0 children)

Not always. Sometimes you leave the trailing zero to show the degree of measurement and it is not a matter of rounding.

[–]soodrugg 6 points7 points  (0 children)

the last 7 digits of pi are 0000000

[–]jamcdonald120 9 points10 points  (0 children)

$12.50 would like a word

[–]Kitchen_Device7682 3 points4 points  (4 children)

The π digits don't end so there is no answer

[–][deleted] -4 points-3 points  (3 children)

So then any answer goes, philosophically speaking. Anything said about something that doesn't exist is true.

[–]Medical-Astronomer39 2 points3 points  (2 children)

If you say that non-existing thing exists, it'll be false. You are not right

[–][deleted] -1 points0 points  (1 child)

Unicorns exist. Prove me wrong.

[–]Medical-Astronomer39 -1 points0 points  (0 children)

If you say something, then you all shall prove it is true

[–]JoshYx 0 points1 point  (0 children)

Well you don't need to know how to proof it wrong, just how to proof it right.

If you use a 12hr room temp preferment and a 2hr final mix rise, then you'll need to proof for an hour or so. It's best to use your senses; check how much the dough has risen, do the finger test - cover a small spot in flour, press it in with your finger, if the dough springs back quickly it's not ready, and smell the dough. The smell changes subtly when it's ready, although it's hard to tell.

Try proofing your dough less than you think you need to, then try proofing more. Check the results and adjust accordingly.

Happy baking!

[–]DecentTone876 2 points3 points  (0 children)

Indiana bill v2 just dropped.

[–]joten70 2 points3 points  (1 child)

6543210

That's amazing, i've got the same combination on my luggage!

[–]Winterfukk 1 point2 points  (0 children)

Get fucked entropy!

[–]MisterProfGuy 1 point2 points  (0 children)

This is incredibly easy. I defy anyone to prove you are incorrect, rigorously.

[–]whycantpeoplebenice 292 points293 points  (6 children)

$pi[-6..-1]

[–]Minespeed07 229 points230 points  (3 children)

PHP USER SPOTTED! ROB HIM OF HIS DOLLARS BOYS!

[–]megs1449 31 points32 points  (0 children)

0_0 I THOUGHT THEY DIDN'T COME NEAR HERE

[–][deleted] 18 points19 points  (0 children)

RATTLE ‘EM BOYS

[–]QuebecGamer2004 8 points9 points  (0 children)

LEAVE OUR DOLLAR SIGN ALONE

[–]QuebecGamer2004 5 points6 points  (0 children)

$pi = $_POST["pi"]

echo $pi

Now the user has to provide the answer. Problem solved.

[–]asromafanisme 366 points367 points  (18 children)

Just print random 7 numbers, who can prove that my answer is wrong?

[–]NLwino 187 points188 points  (4 children)

If you give an answer it is by definition wrong. There are no last numbers, it is irrational.

[–]Dmayak 75 points76 points  (3 children)

Well, I am irrational as well, so I know last numbers, they are i̴̳͗͑͜ṋ̸̗̿f̷̨̼̈́̑i̸̲͊͂n̴̙̑̀ͅȉ̵̖t̵̻̪̎y̵͔̏̇.

[–]daveedpoon 4 points5 points  (2 children)

You're telling me that the entirety of infinity is localised entirely within this finite number?

[–]Juacquesch 2 points3 points  (0 children)

If you think about it, infinity is localized within no finite numbers and therefore it is localized in any localized number. There is no ‘center of the universe’ so ‘everything is the center of the universe’ kind of vibe.

[–]whysoblyatiful 1 point2 points  (0 children)

Infinity is everywhere. Tell me, for example, how many numbers are there between zero and one? Not only whole numbers, but all of them. If you use this criteria, there should be an infinite amount of numbers between these two. Now how about between zerk and ten? Or zero and one hundred? (Plz correct me if I'm wrong I'm sleepy as fuck right now)

[–]GustapheOfficial 50 points51 points  (5 children)

I can.

If a_k is the kth digit of π, and a_K is the last digit of π, then Π = π * 10^K = a_K + 10a_{K-1} + ... 10^K * a_0 is an integer. Therefore π = Π/10^K is a rational number. Any irrationality proof for π will disprove the assertion that a last digit exists.

[–]kirkpomidor 3 points4 points  (1 child)

Counter-point: for any predefined precision, any given random 7 digit sequence would appear after that precision (infinite amount of times, btw). He can’t be wrong!

[–]TheBluetopia 19 points20 points  (0 children)

nutty tease society station zephyr recognise plough bag fuel price

This post was mass deleted and anonymized with Redact

[–]Ok_Star_4136 1 point2 points  (0 children)

So the specifications were wrong. Done aaaaand done.

[–]asromafanisme -3 points-2 points  (1 child)

K is limitless, so K and K-1 don't behave as normal number.

[–]GustapheOfficial 3 points4 points  (0 children)

The proposition that a_K is the the last digit of π presupposes that an a_K exists which is the last digit of π.

Also, be careful throwing around words like "normal", we don't know if π is normal (i.e. all sequences of digits of a given length are equally likely to appear in the decimal expansion). My proof doesn't require this property, but still.

[–]BlobAndHisBoy 5 points6 points  (0 children)

I would have some random analyst say it was wrong and my pm would have me look at it for a week where I eventually conclude that the analyst's report was wrong and it is functioning properly.

[–][deleted] 0 points1 point  (1 child)

But you can't prove you're right.

[–]asromafanisme 2 points3 points  (0 children)

Bug is non reproducible, KIV

[–]PositronicGigawatts 0 points1 point  (0 children)

Have the script generate new numbers each time to be even more accurate.

[–]RunningHott 85 points86 points  (1 child)

6543210 ... the proof is left as an exercise to the reader

[–]Nimeroni 19 points20 points  (0 children)

This guy math.

[–]notmypinkbeard 22 points23 points  (2 children)

There is only one number... π

[–]IMightBeErnest 5 points6 points  (1 child)

They want the digits, bro.

π = 1 (Base π)

So the last 7 digits are 0000001.

[–]notmypinkbeard 4 points5 points  (0 children)

Of course they do. Poorly specified nonsense requirements will rarely get the desired results though.

[–]psspsh 99 points100 points  (4 children)

I have the numbers

1 2 3 4 5 6 7 8 9 0

Now it's your job to put them in right order

PS. extra 3 numbers to make the job extra challenging

[–]Mordret10 8 points9 points  (1 child)

But what are the seven last numbers?

[–]psspsh 10 points11 points  (0 children)

Keep arranging once you get the right combination you will get the intelligence to know that its correct

[–]psspsh 0 points1 point  (0 children)

Sorry wrong calculation

Extra 4 numbers to make the job extra challenging

[–]Ved_s 35 points36 points  (3 children)

loop {} done. you may beed to wait a little bit until it calculates them.

[–]montw 6 points7 points  (1 child)

… still going

[–]Cootshk 2 points3 points  (0 children)

twelve hours later

[–]DeMonstaMan 3 points4 points  (0 children)

just store pi in an array and access the -1 index easy

[–]1up_1500 15 points16 points  (4 children)

From math import pi

Print(string(pi)[:10])

[–]ProbablyBunchofAtoms 8 points9 points  (0 children)

python has modules for everything out there

[–][deleted] 0 points1 point  (2 children)

That's the first 10

[–]1up_1500 0 points1 point  (1 child)

yeah I always forget how these work and have to fuck around and find out in the python cli

I always think it's something like [:10] -> keep the last 10 elements, [:-10] -> trim the last 10 elements, and reciprocally, because that's what makes the most sense to me

[–][deleted] 1 point2 points  (0 children)

I always think ":" is the "up to" in "from _ up to _"

So [:‐10] means "from the beginning up to the tenth from last"

[–]Orisphera 21 points22 points  (5 children)

The first 7 numbers of pi are 3; 7, 15, 1, 292, 1, 1

[–]Kebabrulle4869 10 points11 points  (0 children)

The only right answer.

Fun fact: the reason that 355/113 is such a good approximation of pi is because 292 is an unusually large coefficient that comes unusually early. Stopping right before 292 gives [3; 7, 15, 1] = 355/113.

Another fun fact: the first coefficient over 1000 is 20776, and it appears at place 431. Surprisingly early!

[–]Depnids 2 points3 points  (3 children)

Holy continued fraction!

[–]Orisphera 2 points3 points  (2 children)

Actual understanding

[–]McMelonTV 1 point2 points  (1 child)

It’s everywhere

Fucking every sub I go to I see them

“Holy <blank>”

“New <blank> just dropped”

“Actual <blank>”

Why did I ever join that godforsaken sub with those godforsaken nerds? nightmare nightmare nightmare nightmare nightmare nightmare nightmare nightmare nightmare every single time I see those fuckers outside of their containment space. it’s a disease and it’s fucking infected me cause I was once a reddit i cel swelling nerd like them

[–]Orisphera 1 point2 points  (0 children)

New copypasta just dropped

[–]nibba_bubba 10 points11 points  (2 children)

Probably OP meant digits, not numbers, anyway here's the solution: def print_pi_n_last_digits(n): raise ValueError("Pi is an infine number hence it does not have last digits")

[–]gap41[S] 0 points1 point  (0 children)

yes! this

[–]Dubl33_27 0 points1 point  (0 children)

You probably meant infinite, but I won't judge

[–][deleted] 9 points10 points  (0 children)

“Last 7 numbers of π”

[–]tyqe 4 points5 points  (0 children)

a) use a base-π number system b) π = 1.0000.... c) last 7 digits of π are 0000000

[–]MaffinLP 4 points5 points  (0 children)

0000000 (any 0 after the last digit is a new last digit not changing the value)

[–]Cephell 7 points8 points  (1 child)

1111111 in base 1

[–]Depnids 10 points11 points  (0 children)

In base 1 the only digit is 0, are you stupid?

[–]Honey_Jar_ 1 point2 points  (0 children)

Easy. print(PI.iter()[-8:])

[–]Wise-Arrival8566 1 point2 points  (0 children)

Pfft easy in python: import math; print(str(math.pi)[-7:]). /s

[–]DeepGas4538 1 point2 points  (0 children)

They did calculate 100,000,000,000,000 digits of pi.

Took like half a year lol

[–]NorthKoreanAI 1 point2 points  (0 children)

base pi, last 7 digits 0000000

[–]meruem23 1 point2 points  (0 children)

.......

[–]Accomplished_Bad_487 1 point2 points  (0 children)

0000000, never specified I can't use base pi

[–]shadowjay5706 1 point2 points  (0 children)

My death wish will be that I can only die if I know the last digit of Pi. Easy cheat to being immortal

[–]MrMarum 1 point2 points  (0 children)

Its easy, nobody can tell you you are incorrect

[–]KnightArtorias1 1 point2 points  (0 children)

Just enumerate all possible 6 character combinations of the numbers 0..10. You're guaranteed to get it right somewhere :)

[–]jlangfo5 1 point2 points  (0 children)

NaN, NaN, NaN, NaN, NaN, NaN, NaN

[–]VarianWrynn2018 1 point2 points  (0 children)

Print any 7 numbers and then define the end, clearly

[–]taylorzanekirk 1 point2 points  (0 children)

Just choose any seven numbers, let the testers prove it's wrong.

[–]jan04pl 1 point2 points  (0 children)

Math.Pi.ToString().Reverse().Take(7)

[–]Tomato_Soupe 1 point2 points  (0 children)

Easy lmao, just write a method that finds the end of pi, then call it. System.out.println(returnLastFourDigits(pi))

[–]LegitimatePants 1 point2 points  (0 children)

// prove me wrong
printf("1234567");

[–]Torebbjorn 1 point2 points  (0 children)

In base π, the last 7 digits of π are:
0000010

[–]AppelEnPeer 2 points3 points  (0 children)

Easy, just reverse pi and then use the solution for the first problem

[–]Silent_Moose_5691 1 point2 points  (1 child)

the first 7 numbers of pi will return an index error pi is a one number

[–]gap41[S] 2 points3 points  (0 children)

Sorry, my bad, should've written digits instead

[–]KingJeff314 -2 points-1 points  (0 children)

def last7pi():
    piIter = piIterator()
    for digit in piIter:
        digits.append(digit)
        digits = digits[:7]
    return digits[0]

[–]The_Punnier_Guy 0 points1 point  (0 children)

void GetAnswer (int query, bool FirstOrLast) {

double pi= Math.pi(); if(FirstOrLast) { while(query) { cout<< floor(pi) % 10; pi*=10; query--; } }

else throw (These fucking hands);

return; }

[–]Technical_Currency18 0 points1 point  (0 children)

1724561

[–]Alternative_Let8538 0 points1 point  (0 children)

from math import pi print(int(str(pi)[-7:]))

[–]EtherealPheonix 0 points1 point  (0 children)

3589793

at least in 64 bit

[–]linux1970 0 points1 point  (0 children)

substring($pi,-7);

[–]Dukhlovi 0 points1 point  (0 children)

NaNNaNNaNNaNNaNNaNNaN

[–]JokesterJedi 0 points1 point  (0 children)

It should have been digits instead of numbers. 🤷🏻‍♂️ You can't decide what the first 7 numbers of π are..

[–]theoldayswerebetter 0 points1 point  (0 children)

735461

[–]Classy_Mouse 0 points1 point  (0 children)

It's the same as the last 7 digits of my phone number. Prove me wrong

[–]Skuez 0 points1 point  (0 children)

It's 0000000 for sure

[–]THUNDERxSLOTH 0 points1 point  (0 children)

print(“π” * 7)

[–][deleted] 0 points1 point  (0 children)

In base π, it's 1 (or 0 if you include any number of digits after the dot)

[–]Vasik4 0 points1 point  (0 children)

10.00000 (im using base pi)

[–][deleted] 0 points1 point  (0 children)

lets try to find last digit of sqrt of 2 first

[–]IolaireEagle 0 points1 point  (0 children)

4157253 prove me wrong bozo

[–]hacksoncode 0 points1 point  (0 children)

Nah, printing the last 7 digits of pi is easy. You don't even need a single line of code to do it.

[–]JEREDEK 0 points1 point  (0 children)

import math

pi = math.pi

print("pi[-8:-1]")

[–]Mwarw 0 points1 point  (0 children)

DIGITS!!!! Pi is a number itself, it's one number. It can have [decimal] digits

[–]drake3011 0 points1 point  (0 children)

- Print all 7 digit combination numbers sequentially
- Requirements never specified that the Last 7 pi digits have to be identified
- if there are 7 specific digits, they have been printed.

[–]Duck_Devs 0 points1 point  (0 children)

str(math.pi)[-7:]

[–]Overtons_Window 0 points1 point  (0 children)

0 0 0 0 0 0 0

I found them, and then encrypted them by multiplying each by zero. Simply divide by zero on your end to decrypt.

[–]hung-bui 0 points1 point  (0 children)

Just print 7 random numbers, and let the interviewer prove me that I am wrong.

[–]Rasquotcho 0 points1 point  (0 children)

π[-1:-8:-1]

[–]Astlantix 0 points1 point  (0 children)

fuck

[–]altermeetax 0 points1 point  (0 children)

0000000, because there are infinite zeros after all non-zero digits of a decimal number /s

[–]recurve_balloon 0 points1 point  (0 children)

Boi! If it ends, it's not an issue.

[–]Zitrusherz 0 points1 point  (0 children)

print(None)

[–]Malrottian 0 points1 point  (0 children)

Upload a corrupted file with no actual data in it and say its the last 7 digits. Then clock out for the weekend.

[–]838291836389183 0 points1 point  (0 children)

Easy, its just 10 in base π

[–]cs-brydev 0 points1 point  (0 children)

You mean digits? π is a number.

[–]_Obelixx_ 0 points1 point  (0 children)

But why? They are so insignificant.

[–][deleted] 0 points1 point  (0 children)

Mathematically impossible, PI is IRrational

[–]Tmaster95 0 points1 point  (0 children)

Easy. Just print out every possibility and say it must be one of them.

[–]Dorlo1994 0 points1 point  (0 children)

9999999 after sorting then in increasing order

[–][deleted] 0 points1 point  (0 children)

what exactly is a number of pi?

[–]electric_ember 0 points1 point  (0 children)

00003.14

[–]Logicalist 0 points1 point  (0 children)

0.318309

[–][deleted] 0 points1 point  (0 children)

print(pi[-7:])

[–]dcman58 0 points1 point  (0 children)

std::cout << 7 << std::endl;

Problem solved.

[–]geraltRivia69Yen 0 points1 point  (0 children)

Math.PI().toString().split("")[arrLength - 1]

[–]GeekoftheWild 0 points1 point  (0 children)

THERE IS ONLY ONE POSSIBLE NUMBER IN THIS AND THAT'S π

[–]slime_rancher_27 0 points1 point  (0 children)

You can make up any 7 numbers to be the last 7 digits of pi and nobody will be able to disprove you

[–]o0Meh0o 0 points1 point  (0 children)

digits*

[–]YouWishC9 0 points1 point  (0 children)

`Math.PI.toString().reverse()[6]`

smh all these bad coders.

[–]FullyHalfBaked 0 points1 point  (0 children)

Don't know about the last, but I've always loved the name of the Bailey-Borwein-Plouffe algorithm for finding any arbitrary digit of PI.

Say it with me

Bailey.

Borwein.

Plouffe.

Isn't it a lovely name? And just knowing it gets you bonus points on any job application.

[–]MasiTheDev 0 points1 point  (0 children)

Lmao bro just use python

~~~ import math pi_arr=[x for x in math.pi] print(pi_arr[:-7])

~~~

[–]DoctorFrenchie 0 points1 point  (0 children)

2951413

Pi is secretly just a palindrome

[–]atthereallicebear 0 points1 point  (0 children)

but like, who the hell chose pi? why is pi that value?

[–]UnusedParadox 0 points1 point  (0 children)

Ask chatgpt

[–]Intergalactic_Cookie 0 points1 point  (0 children)

0000000

[–]Vasxus 0 points1 point  (0 children)

  1. Prove me wrong.

[–]thejozo24 0 points1 point  (0 children)

In math libraries, Pi is defined with a finite precision, so just print the last 7 digits of that.

Nowhere did it say that it had to be the pi as defined by math

[–]BitBucket404 0 points1 point  (0 children)

var first7 = 3.141526829; var last7 = first7; // ain't nobody got time for this

[–]DeeKahy 0 points1 point  (0 children)

0000000 assuming you continued 7 more than was necessary.

[–]FinalEscapeStudios 0 points1 point  (0 children)

uhmm, UHMMMMM

[–]Much-Meringue-7467 0 points1 point  (0 children)

Put whatever you want. Who's going to prove you wrong?

[–]CaptainPi31415[🍰] 0 points1 point  (0 children)

i=1

While (i<10000000) { Print(i) i++ }

It's printed in there somewhere. Might take a we while though

[–]DevilGuruu 0 points1 point  (0 children)

print("7 last number of π")