change method name to printPrimesInTableForm

describe what method does in detail