You're looking at Less Wrong's discussion board. This includes all posts, including those that haven't been promoted to the front page yet. For more information, see About Less Wrong.

Kawoomba comments on What are you working on? July 2013 - Less Wrong Discussion

8 Post author: David_Gerard 02 July 2013 04:39PM

You are viewing a comment permalink. View the original post to see all comments and the full post content.

Comments (100)

You are viewing a single comment's thread. Show more comments above.

Comment author: Kawoomba 07 July 2013 02:59:06PM 0 points [-]

'factor' is not defined, you probably meant 'divisor'.

Not a syntax error, but the variable name 'lastprime' is named wrongly.

As per your request no further explicit help, but write the code with some binary isPrime dummy function, then once you're sure the logic is correct expand the isPrime with the actual prime check. It helps disconfuddling some of the potential confuddlers.

Think about the logic top down, high level first.