function multi_sum_6(x,y,z)
total = sum(filter(i -> ((i % x == 0) | (i % y == 0)), [1:z]))
return(total)
end
I am getting the following warnings with my function (Project Euler) . When
I run the separate lines I do not get the following warning, but get the
exact answer. It is only when
'*
*julia **typeof(a)*
*Char*
*julia **b = parseint(a)*
*3*
*julia **typeof(b)*
*Int64*
On Monday, June 15, 2015 at 12:39:14 PM UTC-4, James Byars wrote:
Hey all,
I am working through some Project Euler problem (#008) about searching
through a number to determine the greatest product
Hey all,
I am working through some Project Euler problem (#008) about searching
through a number to determine the greatest product of
thirteen adjacent numbers. Here is a code snippet:
n = 12
numb_strg = 82166370484403199890008895243450658541227588666881
string_post = length(numb_strg) - n
Hello all,
I am an education doctoral student who is a self-taught stats and
programming person. My primary coding and stats experience is with R. I
have started to attempt Julia and was using the Project Euler questions as
a way to teach myself the language structure, types, and specifying
(y:y:z) - sum(lcm(x,y):lcm(x,y):z)
end
fib_sum_2 (generic function with 1 method)
julia fib_sum_2(3,5,999)
233168
What happens if you restart Julia and try again?
On Monday, May 18, 2015 at 4:34:11 PM UTC+2, James Byars wrote:
Hello all,
I am an education doctoral student who