P40

ninetynine.P40
object P40

P40 - Goldbach's conjecture.

Goldbach’s conjecture says that every positive even number greater than 2 is the sum of two prime numbers. E.g. 28 = 5 + 23. It is one of the most famous facts in number theory that has not been proved to be correct in the general case. It has been numerically confirmed up to very large numbers (much larger than Scala’s Int can represent).

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
P40.type

Members list

Value members

Concrete methods

def goldbach(n: Int): (Int, Int)

Attributes

Returns

a Goldbach composition

def isEven(n: Int): Boolean

Attributes

Returns

true if n is even

Concrete fields

val logger: Logger