Package de.tilman_neumann.jml.sequence
Class SquarefreeSequence63
- java.lang.Object
-
- de.tilman_neumann.jml.sequence.SquarefreeSequence63
-
- All Implemented Interfaces:
NumberSequence<Long>
public class SquarefreeSequence63 extends Object implements NumberSequence<Long>
Sequence of multiplier * {squarefree numbers 1,2,3,5,6,7,10,11,13,...}, long implementation.- Author:
- Tilman Neumann
-
-
Constructor Summary
Constructors Constructor Description SquarefreeSequence63(long multiplier)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
static void
main(String[] args)
Long
next()
void
reset()
Reset sequence so that it starts again with its first element.
-
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getName
in interfaceNumberSequence<Long>
- Returns:
- the name of this sequence generator
-
reset
public void reset()
Description copied from interface:NumberSequence
Reset sequence so that it starts again with its first element.- Specified by:
reset
in interfaceNumberSequence<Long>
-
next
public Long next()
- Specified by:
next
in interfaceNumberSequence<Long>
- Returns:
- the next integer
-
main
public static void main(String[] args)
-
-