7
votes
2answers
515 views

Checking for circular primes - Project Euler Problem 35

I have been trying to solve Project Euler problem number 35. The problem is to find: How many circular primes are there below one million? A circular prime is a prime where all the rotations of ...
7
votes
1answer
326 views

Solving systems of linear equations

I am working on the following problem (http://www.enigmagroup.org/missions/programming/9/). You have a 6x6 table where the first 5 columns and rows are comprised of different types of shapes, 5 ...
6
votes
3answers
276 views

Coderbyte SimpleSymbols challenge in Javascript

I am working on a CoderByte problem in JavaScript. I have solved the problem below. Although I am trying to figure out if there is an easier way to do it? I am guessing RegEx will come up, although I ...
5
votes
1answer
56 views

Project Euler #41 - pandigital prime

I've written a solution to Euler 41: We shall say that an n-digit number is pandigital if it makes use of all the digits 1 to n exactly once. For example, 2143 is a 4-digit pandigital and is ...
5
votes
1answer
327 views

Project Euler question 2 in CoffeeScript

By considering the terms in the Fibonacci sequence whose values do not exceed four million, find the sum of the even-valued terms. ...
3
votes
3answers
113 views

Login script that checks two users and their corresponding passwords

Please let me know what you think. Is the code well written? Am I using best practices (like when I chose === over ==)? Is my ...
3
votes
3answers
247 views

Replacing every letter in a string with the letter following it in the alphabet

I am working through some of the exercises at Coberbyte. The instructions for this exercise are to replace every letter in a string with the letter following it in the alphabet (i.e., c becomes d, z ...
1
vote
3answers
164 views

Testing distance between characters in a string

Here is another challenge from Coderbyte. I found this one challenging, although not quite as much as the previous two I've posted. Based on the feedback I received on my earlier posts, I structured ...
1
vote
2answers
218 views

Trying to improve my javascript code in this simple challenge from coderbyte

Here is a slightly modified challenge from Coderbyte: Determine if a given string is an acceptable. The str parameter will be composed of + and = symbols with several letters between them (ie. ...
1
vote
1answer
821 views

Testing if numbers in the array can be added up to equal the largest number in the array

Okay, here's a challenge at Coderbyte that completely stumped me. I came up with a solution, but I know it is flawed. Have the function ArrayAdditionI(arr) ...