Does that mean if n divided by f does not equal 0, I keep going?
Does that mean if n divided by f does not equal 0, I keep going?
No, it means if n divided by f has a remainder that is not 0, then you keep going.
9 mod 3 = 0, which fails (9 / 3 = 3 R 0).
10 mod 3 = 1, which passes (10 / 3 = 3 R 1).
i don't even know what <> means
I write code that evolves, fucking genes and shit. My code is so smart it solves problems on its own just by evolving the correct solution to an np problem. That state space is huge motherfucker, but my code doesn't give a fuck and just breeds until the best individuals make up the majority of the generation. Stay awake in class and maybe you will write cool shit like me some day.
I can't stay awake in class because I wake up for school at 12 two days out of the week and sleep in until at least 3 PM every other day and then I have to get up for this class at like 6 AM and it's a 4 hour class so I'm just completely fucking out of it and if I do somehow manage to pay attention for an hour or two he doesn't actually start going over new stuff until the end of class and his bullshit is so tiring that I'm dead by that point
Does this look right at all? I have never done my homework before and I have no clue what I'm doing...
http://i73.photobucket.com/albums/i2...homas/HELP.jpg
I'm not sure if the line number is supposed to go back and forth like that, maybe it's just supposed to be 1, 2, 3, 4, 5, 6, 7, etc.
And I think I might have to do something for line 4 and I probably handled line 5 wrong
POST might be in the wrong column or maybe it's not supposed to be there at all and is there supposed to be a line 7
See this is why I have to sleep through class because I have to stay up all night to ask my friend to go over this in the morning
lol I could write it in python but nfi how to do it in excel-alikes XD
you have to change the code until you get a result that is correct
It's just simple tracing you dumb bitch
printsCode:#!/usr/bin/python n = 91 f = 2 while (f*f<n) and (n%f != 0): print f, n f+=1
is that what you wanted? but i mean that's it in pythonCode:2 91 3 91 4 91 5 91 6 91![]()
HELL YEAH I DID MY HOMEWORK RIGHT WHAT THE FUCK ARE YOU BITCHES GONNA DO ABOUT IT NOT SHIT THAT'S WHAT