using UnityEngine; public class EX6 : MonoBehaviour { public int nombre ; // Start is called once before the first execution of Update after the MonoBehaviour is created void Start() { if(nombre == 2 || nombre == 3 || nombre == 5 || nombre == 7) { print("nombre premier"); } else if(nombre % 2 == 0) { print("pas premier"); } else if(nombre % 3 == 0) { print("pas premier"); } else if(nombre % 5 == 0) { print("pas premier"); } else if(nombre % 7 == 0) { print("pas premier"); } else { print("nombre premier"); } } // Update is called once per frame void Update() { } }