Luís Ramalho bio photo

Luís Ramalho

Developer & Entrepreneur

Twitter LinkedIn Github Stackoverflow

All Posts

2016

Project Euler — Problem 58

Spiral primes is a problem in which one must find the side length of the square spiral for which the ratio of primes along both diagonals first falls below 1...

2014

Project Euler — Problem 57

Square root convergents is a problem in which one must find how many fractions of the square root of 2 contain a numerator with more digits than denominator.

Project Euler — Problem 56

Powerful digit sum is a problem in which one must find the maximum digital sum considering natural numbers of the form, a^b, where a, b < 100.

Project Euler — Problem 55

Lychrel numbers is a problem in which one must find how many Lychrel numbers are there below ten-thousand. You can read here more about Lychrel numbers.

Project Euler — Problem 52

Permuted multiples is a problem in which one must find the smallest positive integer, x, such that 2x, 3x, 4x, 5x, and 6x, contain the same digits.

LeetCode's Single Number

LeetCode’s Single Number is a problem where an array of integers is given and every element appears twice except for one. The goal is to find that single one.

Project Euler — Problem 50

Today is a good day! I’m among the 7% that solved 50 Euler problems. Woohoo! Ok, ok! Enough bragging, so the problem 50 is called consecutive prime sum in wh...

Project Euler — Problem 31

Coin sums is a problem where one must count how many different ways a £2 coin can be made using any number of coins. Firstly, I tried to tackle this problem ...

Codility's CountFactors

CountFactors is a problem where one must compute the factors of a given number. Note that before attempting this problem, you should read the material on pri...

Codility's MaxProfit

MaxProfit is a problem where one must compute the maximum possible earnings given a log of stock prices. Note that before attempting this problem, you should...

Codility's Genomic Range Query

Genomic Range Query is a problem from codility with the goal of finding the minimal nucleotide from a range of sequence DNA. Note that before attempting this...

2013

2012

Threats and Mitigation

As part of an assignment for CS4203 Computer Security, I wrote an essay on Threats and Mitigation, its abstract below.

2011

2010