Project Euler | INFJ Forum

Project Euler

Vex

Community Member
Sep 26, 2008
129
13
0
MBTI
INFJ
Enneagram
99999
Anyone here doing Project Euler?

In short it is a series of math problems that only can be solved with computers. The idea is to come up with an algorithm and with usually ten to twenty lines of code solve it.
I've grinded about 10 problems today and it's really addictive...:p

Here's the site:
www.projecteuler.net
 
  • Like
Reactions: Siamese cat
I am glad that you are enjoying this activity... I have to agree with the above posts, I would rather do something else, like explore Google Earth or read countless Wikipedia articles :)
It's rather rare to see an INFJ so much into math. I think that's great for you, since you are able to approach such problems from a different perspective than purely logic but use your intuition and feeling as well. It's a gift!
 
function problem_one()
x=0;

for n=1:999
if rem(n,3)==0
x=x+n;
elseif rem(n,5)==0
x=x+n;
end
end
disp(x);

------------------------

That's my contribution :p
 
  • Like
Reactions: grt$5vb
Oh, thank you very much for this, I can't wait to start. :D
 
I think I'm rather strange INFJ since we usually gravitate towards liberal arts but I have to say that intuition is a rather helpful tool in physics which is my major.

Here's my contribution for probl. one
lista=[3,5]
n=1
m=0
for i in range(999):
for i in range(2):
if n % lista == 0:
m+=n

break

n+=1
print m



---------------------------

I've solved 15 problems so far but they're getting harder.....
 
programming is mad fun yo.

Thank you for the link! I might as well kill some time with this.
 
Hey, I'm on this site too. I've just made it to level 1 the other day. I think it helps us INFJ's develop our tertiary Ti quite nicely (as much as programming does). You have to remember not everything can be done by our Ni as this is a realm based purely on mathematics (despite syntax and language terminology), or at least, mostly is.

Last question I solved was q22:

import string
names = []
alph = ['a','b','c','d','e','f','g','h','i','j','k','l','m',
'n','o','p','q','r','s','t','u','v','w','x','y','z']

f = open('names.txt', 'r')
for lines in f.readlines():
names = lines.split(',')
names.sort()

nameval = 0
nametot = 0
namepop = names
for name in namepop:
for letter in range(2,len(name)):
indexn = name[letter-1].lower()
nameval += alph.index(indexn)+1
nametot += nameval * (namepop.index(name)+1)
nameval = 0
print nametot

edit: Damn post, why u no space??
 
My programming skills stopped when my 3-2-1 Contact subscription ran out...