Skip to main content
Commonmark migration
Source Link

#SWI-Prolog, 51 bytes

SWI-Prolog, 51 bytes

a(X):-X>1,\+ (Y is X-1,between(2,Y,I),0=:=X mod I). 

This uses predicate between/3 which is not an ISO-Prolog predicate.

#SWI-Prolog, 51 bytes

a(X):-X>1,\+ (Y is X-1,between(2,Y,I),0=:=X mod I). 

This uses predicate between/3 which is not an ISO-Prolog predicate.

SWI-Prolog, 51 bytes

a(X):-X>1,\+ (Y is X-1,between(2,Y,I),0=:=X mod I). 

This uses predicate between/3 which is not an ISO-Prolog predicate.

Source Link
Fatalize
  • 39.6k
  • 5
  • 73
  • 165

#SWI-Prolog, 51 bytes

a(X):-X>1,\+ (Y is X-1,between(2,Y,I),0=:=X mod I). 

This uses predicate between/3 which is not an ISO-Prolog predicate.