Articles by Peter Prevos

Euler Problem 14: Longest Collatz Sequence

March 1, 2017 | Peter Prevos

Euler Problem 14 looks at the Collatz Conjecture. These playful sequences, named after German mathematician Lothar Collatz (1910–1990), cause mathematicians a lot of headaches. This video introduces the problem much better than I can describe it. Euler Problem 14 Definition The following iterative … Continue reading → The post Euler Problem 14: Longest Collatz Sequence appeared ... [Read more...]

Euler Problem 13: Large Sum of 1000 Digits

February 22, 2017 | Peter Prevos

Euler Problem 13 asks to add one hundred numbers with fifty digits. This seems like a simple problem where it not that most computers are not designed to deal with numbers with a lot of integers. For example:   When asking … Continue reading → The post Euler Problem 13: Large Sum of 1000 Digits appeared ... [Read more...]

Euler Problem 11: Largest Product in a Grid

February 9, 2017 | Peter Prevos

Solution to Euler Problem 11 in the R language. What is the greatest product of four adjacent numbers in the same direction in the 20 by 20 grid? Continue reading → The post Euler Problem 11: Largest Product in a Grid appeared first on The Devil is in the Data.
[Read more...]

Euler Problem 10: Summation of Primes

February 1, 2017 | Peter Prevos

A solution in the R language for statistical computing to find the solution the Euler Problem 10: Find the sum of all primes below two million. Continue reading → The post Euler Problem 10: Summation of Primes appeared first on The Devil is in the Data.
[Read more...]

SCADA spikes in Water Treatment Data

January 29, 2017 | Peter Prevos

SCADA data is essential in operating water treatment plants. Spikes in the data can indicate problems. How can you detect SCADA spikes using the R language? Continue reading → The post SCADA spikes in Water Treatment Data appeared first on The Devil is in the Data.
[Read more...]

Euler Problem 8: Largest Product in a Series

January 18, 2017 | Peter Prevos

Solution to Euler Problem 8 in the R Language for Statistical Computing. Find the thirteen adjacent digits in the 1,000-digit number that have the greatest product. What is the value of this product? Continue reading → The post Euler Problem 8: Largest Product in a Series appeared first on The Devil is in ... [Read more...]

Euler Problem 7: 10,001st Prime

January 16, 2017 | Peter Prevos

A solution in the R language for statistical computing to find the solution the Euler Problem 7: Find the 10,001st prime number. Continue reading → The post Euler Problem 7: 10,001st Prime appeared first on Data Science with R. [Read more...]

Euler Problem 5: Smallest Multiple

December 29, 2016 | Peter Prevos

Solution to Euler Problem 5 in the R Language for Statistical Computing: What is the smallest positive number that is evenly divisible by all of the numbers from 1 to 20? Continue reading → The post Euler Problem 5: Smallest Multiple appeared first on The Devil is in the Data. [Read more...]

Euler Problem 3: Largest Prime Factor

December 14, 2016 | Peter Prevos

Solutions to Euler Problem 1 in the R language for statistical computing. This problem asks to find the largest prime factor of the number 600851475143. Continue reading → The post Euler Problem 3: Largest Prime Factor appeared first on The Devil is in the Data. [Read more...]

Euler Problem 2: Even Fibonacci Numbers

December 7, 2016 | Peter Prevos

Solutions to Euler Problem 2 in the R language for statistical computing. This problem asks to sum even numbers in the Fibonacci sequence whose values do not exceed four million. Continue reading → The post Euler Problem 2: Even Fibonacci Numbers appeared first on The Devil is in the Data. [Read more...]

Euler Problem 1: Multiples of 3 or 5

November 30, 2016 | Peter Prevos

Solutions to Euler Problem 1 in the R language for statistical computing. This problem asks to find the sum of the multiples of 3 or 5 below 1000. Continue reading → The post Euler Problem 1: Multiples of 3 or 5 appeared first on The Devil is in the Data. [Read more...]
1 3 4 5

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)