## Teaser 2765: Prime points

**From The Sunday Times, 20th September 2015** [link]

In my fantasy football league each team plays each other once, with three points for a win and one point for a draw. Last season Aberdeen won the league, Brechin finished second, Cowdenbeath third, and so on, in alphabetical order. Remarkably each team finished with a different prime number of points. Dunfermline lost to Forfar.

In order, what were Elgin’s results against Aberdeen, Brechin, Cowdenbeath, and so on (in the form WWLDL…)?

[teaser2765]

## Jim Randell 8:38 am

on24 November 2020 Permalink |This Python program considers possible numbers of teams (up to a maximum of 26, as each team is named for a letter of the alphabet), and looks for possible sequences of primes that could correspond to the points. Once a candidate sequence is found we try to fill out a table of match outcomes (win, lose, draw) that gives the desired number of points for each team.

It runs in 49ms.

Run:[ @repl.it ]Solution:Elgin’s results were: L L L L W D W.The complete table looks like this:

LikeLike

## Frits 11:48 am

on25 November 2020 Permalink |LikeLike