A Game of Numbers and Codes

Let K ( n ) K (n) equal the sum of the squares of all primes below n n , and let S ( n ) S (n) equal the sum of the cubes of all even numbers below n n .

If the value of n n is the square-root of the sum of all non-negative perfect cube-root numbers below one-hundred, what is the value of 3 x 2 x 3^x-2^x , where x x is the remainder when S ( n ) S (n) is divided by K ( n ) ? K (n)?


The answer is 129009091.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

Hasmik Garyaka
Oct 18, 2017
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
def sum_of_the_squares_primes_below(n):
    s=0
    for i in range(2,n):
        if prime(i):
              s+=i**2
    return s

def sum_cubes_even(n):
    s=0
    for i in range(2,n,2):
           s+=i**3
    return s

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...