Title Finding the Smallest Divisor of a Positive Number
Catalog Type SLCItem
Persistent ID https://acos.cs.vt.edu/html/acos-pcex/acos-pcex-examples/while_loops_divisor__68bdb308f6cc3d7a9cc0969f?index=0
Platform Name PCEX
Features
Description Construct a program that finds the smallest divisor (other than 1) of a positive number. For example, the smallest divisor of 4 is 2.
Keywords
Author Mohammad Hassany
Institution University of Pittsburgh
Iframe URL https://acos.cs.vt.edu/html/acos-pcex/acos-pcex-examples/while_loops_divisor__68bdb308f6cc3d7a9cc0969f?index=0
Protocol SPLICE
Protocol URL
License MIT
Programming Language JAVA
Natural Language en

Preview

SPLICE Output