Here, using the UK Biobank cohort, we carried out a GWAS of loci associated with the ICD-10 diagnostic code for primary pulmonary hypertension (I27.0), which encompasses IPAH and hereditary PAH but not other forms of associated PAH, and found novel genetic variants, including those in the PIM1 and LINC01491 genes, associated with it. This evidence concerns the gene PIM1 and pulmonary arterial hypertension.