From 4k=12+3ℓ, it follows k=3k1, k1∈N. Analogously, ℓ=4ℓ1, ℓ1∈N. Assuming p=3 gives rise to 3∣k and 3∣ℓ2+ℓk+k2⇒3∣ℓ⇒(k,ℓ)≥3>1, a contradiction with (k,ℓ)=1. Thus, p>3, (3,p)=1, and
ℓ2+ℓk+k2≡3(modp)⟺9ℓ2+9ℓk+9k2≡27(modp)⟺(4k−12)2+(4k−12)3k+9k2≡27(modp)⟺16k2−96k+144+12k2−36k+9k2−27≡0(modp)⟺37k2−132k+117≡0(modp)⟺(37k)2−2⋅66⋅37⋅k+117⋅37≡0(modp)⟺(37k−66)2≡662−117⋅37≡27(modp)⟺(37k1−22)2≡3(modp),
meaning that 3 must be a quadratic residue modulo p. Since the quadratic residues mod 5 and mod 7 are respectively {0,1,4} and {0,1,2,4}, 3 is not among them and p∈/{5,7}, i.e., p≥11. For p=11, 11∣22 and 37≡4(mod11). Therefore, it suffices to find a solution for (4k1)2≡3(mod11), which modulo 11 is equivalent to k12≡5(mod11), i.e., k1=11k2+4 or k1=11k2+7. We have to additionally assure (k,ℓ)=1. We know that k1=1+ℓ1, thus (k1,ℓ1)=1. Therefore, it suffices to take (k1,4)=1 and (ℓ1,3)=1, e.g., k1=15. Then ℓ1=14, k=45, ℓ=56, (k,ℓ)=1, and from k≡ℓ≡1(mod11) we check that
ℓ2+ℓk+k2≡12+1⋅1+12≡3(mod11).
In conclusion, the answer is p=11.