Primes: n*2^m+1: Difference between revisions

Content added Content deleted
(Added Algol W)
m (oops, forgot draft task markup)
Line 1: Line 1:
{{draft task}}

;Task
;Task
* Find and display the first 45 ('''n''') primes of the form '''n × 2<sup>m</sup> + 1''' where '''m''' is the smallest valid non-negative integer.
* Find and display the first 45 ('''n''') primes of the form '''n × 2<sup>m</sup> + 1''' where '''m''' is the smallest valid non-negative integer.